fill image in cell of data table
and make sure image is successfully read and inserted in to cell
For index As Integer = 0 To ds.Tables("Image").Rows.Count - 1
If ds.Tables("Image").Rows(index)("image_path").ToString <> "" Then
Dim s As String = ds.Tables("Image").Rows(index)("image_path").ToString
If File.Exists(s) Then
Drawing.Bitmap img = new Drawing.Bitmap(ds.Tables("Image").Rows(index)("image_path").ToString);
MemoryStream ms = new MemoryStream();
Image returnImage = Image.FromStream(ms);
System.Drawing.Image imageIn = new System.Drawing.Image();
imageIn.Save(ms,System.Drawing.Imaging.ImageFormat.Gif);
ds.Tables("Image").Rows(index)("image_stream") = ms.ToArray();
End If
End If
Next index
Happy Coding!
:)