here's something else i dug up .. before you insert the image into the database, .. use addslashes and addcslashes.
PHP Code:
$data = addcslashes($data, "\0");
Quote:
|
the addcslashes function replaces NUL characters with a \0 code because MySQL treats this character as the end of a string.
|