I've got a c# application which saves and displays records, When saving a record with an image using the picture box it seems as though the image has saved just fine but in the database all the images seem to have the same tag
[BLOB - 13B]
when saving the exact same image into the database manually using the dbms the image tag will read
[BLOB - 2.4KB]
with this tag I can use my image display method and it will be fine
The image is being converted or something when being saved but I cant seem to understand what is the problem.
here is the code for selecting and saving the image
MemoryStream ms = new MemoryStream();
pictureBox.Image.Save(ms, pictureBox.Image.RawFormat);
byte[] img = ms.ToArray();
because of the way this code changes the image, when retrieving it, I receive an error which says "parameter is invalid" using c# and a mysqldatabase, although the database type is irrelevant.
Anyone understand what is going wrong?