View Single Post
Old 08-27-2009, 01:18 PM   #2 (permalink)
ioan1k
The Contributor
 
ioan1k's Avatar
 
Join Date: Mar 2009
Location: US
Posts: 76
Thanks: 0
ioan1k is on a distinguished road
Default

How exactly does the query become corrupted? What errors are given

You should be able to store the image using
php Code:
$binaryData = addslashes(fread(fopen($file, "r"), filesize($file)));

When you want to pull the image you will need to use header() to display the binary data.

php Code:
header("Content-type: $type");
header("Content-length: $size");
echo $data;
__________________
My Portfolio - Work - Need freelance Work?
I've been developing 5 years now, and I learn something new everyday
ioan1k is offline  
Reply With Quote