By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,401 Members | 793 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,401 IT Pros & Developers. It's quick & easy.

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

P: 1
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
Share this Question
Share on Google+
1 Reply


IronRazer
P: 82
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.

Browse more Visual Basic .NET Questions on Bytes