Hi,
I am using this snippet to store an image as binary data into a database later:
$attachmentFileName = $DOCUMENT_ROOT . "/attachments/test.jpg";
$fp = fopen($attachmentFileName, "r");
$fileData = fread($fp, filesize($attachmentFileName));
$fileData = addslashes($fileData);
fclose($fp);
It seems that images larger than 64kb can not be stored completely into the database. I am sure that the database is not that problem. There I am using BLOB fields etc.
Is it possible that the size of variables (here $fileData) is limited to 64kb? I could not find an entry in the php.ini to increase that value.
Can anyone help me quickly or give me an advice?
Thanks,
Danny