From b15ddeaea06b33054ca3c7eac1270ddadcd9a43a Mon Sep 17 00:00:00 2001 From: uthadehikaru Date: Fri, 24 Sep 2021 10:18:49 +0700 Subject: [PATCH] IDEMPIERE-4977 IDempiere Homepage using custom image path failed to load the image (#896) --- .../src/main/home/org/bmlaurus/home/Prop.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org.adempiere.server/src/main/home/org/bmlaurus/home/Prop.java b/org.adempiere.server/src/main/home/org/bmlaurus/home/Prop.java index eec28d9542..7d011432b6 100644 --- a/org.adempiere.server/src/main/home/org/bmlaurus/home/Prop.java +++ b/org.adempiere.server/src/main/home/org/bmlaurus/home/Prop.java @@ -193,7 +193,7 @@ public final class Prop implements Serializable { try { fis = new URL(getProperty(TEMPLATE_PATH)+getProperty(TEMPLATE_NAME)+"/styles/template.css"); byte data[]=read(fis); - ret+=Base64.getEncoder().encode (data); + ret+=Base64.getEncoder().encodeToString (data); } catch (FileNotFoundException e) { e.printStackTrace(); } catch (IOException e) { @@ -273,7 +273,7 @@ public final class Prop implements Serializable { byte data[]=read(fis); if(data==null||data.length<=0) return null; - ret+=Base64.getEncoder().encode (data); + ret+=Base64.getEncoder().encodeToString (data); } catch (FileNotFoundException e) { e.printStackTrace(); } catch (IOException e) {