First, why store it in a database?  Why not store it as a separate file,
then store pointer/file-name to it in database?

If you do want it in the database (may I assume mysql?), then INSERT/LOAD
the file directly into the field without conversion.

-----Original Message-----
From: Jay Paulson [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 08, 2002 5:20 PM
Subject: [PHP] Image Question

Hello everyone.

I'm uploading an image, resizing it, then base64_encoding it to put the
image into a data base.. then when I view it out of the data base using the
base64_decode function it looks horrible.

Below is the original image off of

And here is the image I get after the resize etc.

I'm using imagejpeg with the quality set to 90 so I really don't know why
it's looking so badly.


ps phpinfo is at the following URL

PHP General Mailing List (
To unsubscribe, visit:

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to