Upload image with Windows Form Application C#

Jack Ryan's profile image Jack Ryan posted 4 years ago in General Permalink

Hi ! I try to upload image with windows form application c# to database, i convert the image to binary but when i upload it to the database (into blob type), and try to display the image in the databse, but it says: "This image is invalid because it contains invalid pieces of data(crc error)".

I look forward to your answer. Thank you

ansgar's profile image ansgar posted 4 years ago Permalink

Is that an erorr of HeidiSQL's own image preview panel?

Jack Ryan's profile image Jack Ryan posted 4 years ago Permalink

Yes

ansgar's profile image ansgar posted 4 years ago Permalink

Well I must admin the image preview has some issues, so it's not necessarily your image or your application which has an issue. I already saw some subformats of jpg's throwing such errors here.

Please login to leave a reply, or register at first.