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

2002-11-05 Thread rija
Have you tried out mysql function load_file() to upload directly your file into the database without passing through php variable ? Like this: $result=MYSQL_QUERY("INSERT INTO master_products (image_thumbnail,image_thumbnail_name,image_thumbnail_size,image_thumbnail_t ype) VALUES (load_file('$fo

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