Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

From one application, we are storing all images in SQL database in the Image datatype. From another application, i need to retrieve the images and display it on User Interface.

I am able to store the images. I am not able to read the images.

How to retrieve / read SQL Image Data which is stored in the database ?

share|improve this question
up vote 5 down vote accepted

For a winforms or a WPF applicaiton things are simpler, just assign the BLOB stream to the image StreamSource property.

share|improve this answer
Thank you !! But i havent expected on MVC ..!! I tried to do is more simple from SQL Query !! But thank you !! – goofyui Jan 25 '12 at 19:16

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.