unrecognized BLOB file type

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
adale
Posts: 212
Joined: Wed Apr 08, 2020 9:18 pm
Location: Poplarville, MS

unrecognized BLOB file type

Post 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 7940 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 7940 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.
Arlyn Dale
Servias LLC
User avatar
Dino
Posts: 477
Joined: Fri Jul 19, 2019 7:49 am
Location: Robbinsville, NC
Contact:

Re: unrecognized BLOB file type

Post 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
Post Reply