Skip to content

Commit f8bcd3d

Browse files
filesize fix, correct filesize for linked KB image
1 parent 90b3bf9 commit f8bcd3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/src/main/java/com/genexus/GxImageUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public static long getFileSize(String imageFile){
5151
if (imageFile.toLowerCase().startsWith("http://") || imageFile.toLowerCase().startsWith("https://") ||
5252
(httpContext.isHttpContextWeb() && imageFile.startsWith(httpContext.getContextPath()))){
5353
try {
54-
URL url = new URL(imageFile);
54+
URL url = new URL(GXDbFile.pathToUrl(imageFile, httpContext));
5555
URLConnection connection = url.openConnection();
5656
return Long.parseLong(connection.getHeaderField("Content-Length"));
5757
} catch (Exception e) {

0 commit comments

Comments
 (0)