Page 1 of 1

unrecognized BLOB file type

Posted: Tue Jun 20, 2023 3:55 am
by adale
As to not hijack the other post, I am starting this new question.
Originally started in post:
viewtopic.php?f=3&t=2747

Has anyone see where a BLOB image file is not recognized correctly in a VL web dialog?

Using the DEV tools console, I found that in my VL web dialog when trying to use the intrinsic for the images file path, that the BLOB file was found (status = 200) by the dialog, but the Type is listed as "text/html"???

Code: Select all

#MIIMAGE_PATH := ("images\\" + #CENO + "\\" + #MIIMAGE)
#ImageOnly.Image <= #SYS_APPLN.CreateBitmap( #MIIMAGE_PATH )
BLOB image file type not correct.png
BLOB image file type not correct.png (20.84 KiB) Viewed 7943 times
Console message confirms the file name:
LINE-#560 path: images\\P001\\F0001_tobias_allen.jpg

Yet, when I execute with the dialog image path as the fully qualified URL, it finds and displays the image Type as "jpeg".

Code: Select all

#ImageOnly.Image <= #SYS_APPLN.CreateBitmap( "https://www.servias.net/dcxpgmlib/sip/images/P001/F0001_tobias_allen.jpg" )
BLOB image file type correctly recognized.png
BLOB image file type correctly recognized.png (12.71 KiB) Viewed 7943 times


I created a simplified VL web page & dialog to start a support case with, but in the simplified (non production work) version, the same coding works with both the fully qualified URL path, and the intrinsic images file path finding and displaying the jpg image. ?!?!?

My assumption is that in my production VL web dialog, that I have something that is causing the reading of the BLOB file some grief, but I am not sure what might cause this?

Any help is greatly appreciated.

Re: unrecognized BLOB file type

Posted: Wed Jun 21, 2023 5:43 am
by Dino
Hi Arlyn,

This will fit better in a support case. please log this case.

Note the difference in size in both cases, those blobs are not the same.
Without seeing a full example there is no way to figure out the error.

kind regards