I appreciate that with DSPs the answer is just to paint the image widget, however, this is for integration with a java(script) based graphics/graphing utility via JSON data output by a USP, so I can't do that.Â
I have bitmap data loaded into the database using lfileload/raw, I am trying to convert this to a tag to display an image in HTML
<img src='data:image/bmp;base64, DATAGOESHERE'>
I have tried
variables
raw v_raw
string v_string
endvariables
v_raw=$encode("URAW", fieldname)
v_raw=$encode("BASE64", v_raw)
v_string = $encode("USTRING", v_raw)
and then replacing DATAGOESHERE with v_string, this doesn't work (I've also tried it outputting a basic HTML file, so I know it's not anything further up the line which is at fault).Â
I originally tried without the URAW encode, doesn't appear to make any difference.Â
The data unloads to a bmp file using filedump/raw okay, so I am going to proceed with a (IMNSHO) 'bad' option of dumping the file into a folder in webapps, and then using the filename in the src, but this leaves temp files in the folder I will then have to tidy up, so I will jump at a solution which passes the bitmap data as, well, data.Â
Regards,Â
Iain
------------------------------
Iain Sharp
Head of Technical Services
Pci Systems Ltd
Sheffield GB
------------------------------