1

I have made a sql database using sql server. This database include images. When I display this database in a datagrid, byte[]array displays in the image column. How do I convert from a byte array back to an image and then display that image in the datagrid? Any help or tutorials are appreciated. thanks

0

2 Answers 2

3

Try

 MemoryStream ms = new MemoryStream(imageBytes);
 Image image= Image.FromStream(ms);
Sign up to request clarification or add additional context in comments.

Comments

0

take a look a this tutorial:

http://www.beansoftware.com/ASP.NET-Tutorials/Images-Database.aspx

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.