Last post Mar 16, 2009 09:43 AM by JeanT
Mar 16, 2009 08:56 AM|bambooshoot|LINK
I got the problem with retriving image and dispaly, my code is
basically I retrive data via dataset where img_data datatype is image , but there is error:
parameter is invalid of FromStream
System.Drawing.Image _image = System.Drawing.Image.FromStream( new System.IO.MemoryStream( (byte)row["img_data"] )
anyone can help, please.
Mar 16, 2009 09:43 AM|JeanT|LINK
Please have a look at this code
Note: "dt" is just a dummy DataTable, please replace accordingly.
//DataTable dt = new DataTable();
fileByte = (
IO.MemoryStream stream =
Hope this helps.