470,601 Members | 1,179 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,601 developers. It's quick & easy.

An unhandled exception of type 'System.ArgumentException' occurred in System.Drawing.

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
Oct 28 '16 #1
1 2034
83 64KB
How are you saving the image bytes to the database, can you show that code?
Oct 28 '16 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by =?Utf-8?B?TWFudmVuZHJhIEt1bWFy?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.