Re: [PHP] MYSQL and PHP Storing and retrieving images getting corrupted

2002-11-05 Thread rija
inally, storing image or binary file into database is not good, put them into directory instead. - Original Message - From: "Darren McPhee" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, November 05, 2002 11:24 PM Subject: [PHP] MYSQL and PHP Storing and retr

Re: [PHP] MYSQL and PHP Storing and retrieving images getting corrupted

2002-11-05 Thread Marek Kilimajer
Try adding header('Content-length: ' .strlen($data)); header Darren McPhee wrote: I have written 2 programs (which are very common PHP programs) that A) Allows me to upload image files into a MYSQL database using a simple form. And B) Allows me to retrieve and display the image using a PHP scri

[PHP] MYSQL and PHP Storing and retrieving images getting corrupted

2002-11-05 Thread Darren McPhee
I have written 2 programs (which are very common PHP programs) that A) Allows me to upload image files into a MYSQL database using a simple form. And B) Allows me to retrieve and display the image using a PHP script. This is my problem:- I can upload the images ok. I store the binary code, imag