Picture upload - picture gets chopped

I implemented the picture upload code from the AWDWR-book.(where it
saves the picture to blob-field in db).

It worked well on my windows-box, but now I exported my code to
Linux-box and when the picture is uploaded, it gets cut. Only the upper
30 % of the picture file is saved to db.

Any ideas how to fix this?

By the way, the windows-version of the MySQL Query Browser was able to
show the picture from the blob-field. Now on the linux it can’t show the
picture, but just some binary data.

it’s probably your db. are you storing into a blob, medium blob, or long
blob? they each have different size limits.

JJ wrote:

I implemented the picture upload code from the AWDWR-book.(where it
saves the picture to blob-field in db).

It worked well on my windows-box, but now I exported my code to
Linux-box and when the picture is uploaded, it gets cut. Only the upper
30 % of the picture file is saved to db.

Any ideas how to fix this?

By the way, the windows-version of the MySQL Query Browser was able to
show the picture from the blob-field. Now on the linux it can’t show the
picture, but just some binary data.