Forum Discussion
Tengmin123
5 years agoFrequent Visitor
Cannot display image in report builder from byte array or hex string
Hi, all, I have a byte array (image) in json format in sql db. I extract the image out and also in json format. my query is: SELECT thumbNail FROM Table cross apply openjson(CMD_LIST,'$.queueMe...
AbhiSSRS
5 years agoSolution Sage
The rdl supports Byte Array so you do not need to convert to hex! We have been converting the hex to bytearray if at all! Try to put this on a Dataset field and bind that to the image control. Also just to make sure the image mime is as of the original one.
- Tengmin1235 years agoFrequent Visitor
Thank you for your reply. but my byte array is saved as varchar(max) in database, it is a string with byte array value. is it still ok for report builder to visualize it?
- AbhiSSRS5 years agoSolution Sage
Yeah it should work! try adding this convert
Convert.FromBase64String
- Tengmin1235 years agoFrequent Visitor
I tried add the convert and not add, but both not work for me.