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 To: [EMAIL PROTECTED] 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 IMDB.com http://us.imdb.com/ImageView?u=http%3A//images.amazon.com/images/P/B00005K3O 4.01.LZZZZZZZ.jpg And here is the image I get after the resize etc. http://www.dvdfuture.com/image.php?id=95 I'm using imagejpeg with the quality set to 90 so I really don't know why it's looking so badly. Thanks, Jay ps phpinfo is at the following URL http://www.dvdfuture.com/tests/testphp.phtml -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php