I wite a PHP script that store image in MySQL DB.
But If I want read picture from DB shows me only small part of image...
You know why ?
I check:
w php.ini
----------
magic q (ON), upload_max_filesize (2MB), file_iploads(1)....
The part of my script:
$data = fread(fopen($image, "r"), filesize($image));
$data = str_replace("\\", "\\\\", $data);
$data = addslashes($data);
next Insett Into .... $data, $image_type
What is wrong ?
Please help me if you know .....
But If I want read picture from DB shows me only small part of image...
You know why ?
I check:
w php.ini
----------
magic q (ON), upload_max_filesize (2MB), file_iploads(1)....
The part of my script:
$data = fread(fopen($image, "r"), filesize($image));
$data = str_replace("\\", "\\\\", $data);
$data = addslashes($data);
next Insett Into .... $data, $image_type
What is wrong ?
Please help me if you know .....