I have a table that stores images as byte arrays. I iterate through the table rows and retrieve the byte array as follows
byte[] imgArray = (byte[])row[0];
Where row[0] is the varbinary(MAX) column value. I did try something like
MemoryStream ms = new MemoryStream(imgArray);
System.Drawing.Image img = System.Drawing.Image.FromStream(ms);
My question is how do I display the img object on my asp.net page?
I need to do this programmatically because the rows and the pictures will change real time.