I’m trying to display images from a database table to my dataGridView control.
Other cells display image. But some doesn’t and throws this exception:

What does this exception means? What should I do to fix it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In all likelihood, it means that your image data is invalid. Try extracting the image data by another means, like a simple console app, and pass that to
Image.FromStream. Or serialize it out and try to open it in an external image editor. You might get a more informative error message that way.