I want to display a image in webpage , which is stored in database as blob type. I am storing a image as binary/image type in database successfully. But how can i display it in webpage. I am getting a image as something like symbols(�����JFIF��������fExif��II*���������>) when i retrieve from the database.
I want to display a image in webpage , which is stored in database
Share
You should convert image data to base64 and then write to response, for example:
http://www.techerator.com/2011/12/how-to-embed-images-directly-into-your-html/
Or you can make a link to server script which return header with content type of any image and write image data directly to response.