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

Joe Smith
  • 205
  • 4
  • 15

2 Answers2

3

Try

 MemoryStream ms = new MemoryStream(imageBytes);
 Image image= Image.FromStream(ms);
Bala R
  • 107,317
  • 23
  • 199
  • 210
0

take a look a this tutorial:

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

JAiro
  • 5,914
  • 2
  • 22
  • 21