IDEMPIERE-4977 IDempiere Homepage using custom image path failed to load the image (#896)

This commit is contained in:
uthadehikaru 2021-09-24 10:18:49 +07:00 committed by GitHub
parent 80ed239ac2
commit b15ddeaea0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -193,7 +193,7 @@ public final class Prop implements Serializable {
try { try {
fis = new URL(getProperty(TEMPLATE_PATH)+getProperty(TEMPLATE_NAME)+"/styles/template.css"); fis = new URL(getProperty(TEMPLATE_PATH)+getProperty(TEMPLATE_NAME)+"/styles/template.css");
byte data[]=read(fis); byte data[]=read(fis);
ret+=Base64.getEncoder().encode (data); ret+=Base64.getEncoder().encodeToString (data);
} catch (FileNotFoundException e) { } catch (FileNotFoundException e) {
e.printStackTrace(); e.printStackTrace();
} catch (IOException e) { } catch (IOException e) {
@ -273,7 +273,7 @@ public final class Prop implements Serializable {
byte data[]=read(fis); byte data[]=read(fis);
if(data==null||data.length<=0) if(data==null||data.length<=0)
return null; return null;
ret+=Base64.getEncoder().encode (data); ret+=Base64.getEncoder().encodeToString (data);
} catch (FileNotFoundException e) { } catch (FileNotFoundException e) {
e.printStackTrace(); e.printStackTrace();
} catch (IOException e) { } catch (IOException e) {