IDEMPIERE-4977 IDempiere Homepage using custom image path failed to load the image (#896)
This commit is contained in:
parent
80ed239ac2
commit
b15ddeaea0
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue