How to Get image from database and displayed in image viewer

I am using MSSQL and trying to get image from database

i have done in this way but it is not displaying in image viewer what to do can somebody help me

You are pasting a dataset into it. you will have to get the the value from out the dataset.
{value}[0,0] (i think, I usually set the return format to json, so not sure)

Note: This method will not work if you images are to big. If its to big you will have to use something else like this:

No its not working and from where i can get Blob Server

Just tested and this was correct

So you have something else. Show the result/error, are you sure the img stored is base 64 and is a png?

Its somewhere in the topic i linked, a post from pturmel

yeah its working thanks!!

1 Like