Getting an image from dataSet
Database
2
Posts
2
Posters
0
Views
1
Watching
-
I've a database access with 1 OLE OBJECT field contained an Image. I've queried the database the result is in the DataSet. Now i would to get the image contained here: myDataSet.Tables[0].Rows[i]["Image"] how?
You can read data from a DataSet simply by using the following code: byte[] _Image = (byte[])myDataSet.Tables[0].Rows[0]["Image"]; MemoryStream ms=new MemoryStream(_Image); Image image=Image.FromStream(ms); Now you have your image reconstructed if you have stored it as binary data. Akif