ASP.NET - how to store image in DataSet/DataTable using ASP.NET?

Asked By vinod kumar on 12-Mar-13 06:16 AM
hi friends,
 
            how to store image in Data Set/Data Table?

Thanks in advance...


@vk
Robbe Morris replied to vinod kumar on 12-Mar-13 08:41 PM
Convert the image to a byte[]

http://www.eggheadcafe.com/PrintSearchContent.asp?LINKID=799

You store the byte array in your DataTable column.

 dataTable.Rows["SomeColumnName"] = byteArrayVariable;