i tried this code
Dim bytes As [Byte]() = ds.Tables(0).Rows(r).Item(4)
Dim ms As New MemoryStream(bytes)
Dim im As Image = Image.FromStream(ms)
PictureBox1.Image = im
An unhandled exception of type 'System.ArgumentException' occurred in System.Drawing.
|