We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90b3bf9 commit f8bcd3dCopy full SHA for f8bcd3d
java/src/main/java/com/genexus/GxImageUtil.java
@@ -51,7 +51,7 @@ public static long getFileSize(String imageFile){
51
if (imageFile.toLowerCase().startsWith("http://") || imageFile.toLowerCase().startsWith("https://") ||
52
(httpContext.isHttpContextWeb() && imageFile.startsWith(httpContext.getContextPath()))){
53
try {
54
- URL url = new URL(imageFile);
+ URL url = new URL(GXDbFile.pathToUrl(imageFile, httpContext));
55
URLConnection connection = url.openConnection();
56
return Long.parseLong(connection.getHeaderField("Content-Length"));
57
} catch (Exception e) {
0 commit comments