At 11:56 AM 4/20/02 -0300, Waldemar Brand Neto wrote:
>Dear Myke I have this problem too. When I save the uploaded file im Mysql it
>save the path of the file and not the image itself. How cam I read the file
>and save into a BLOB field.
>
>Thanks.
>
>Waldemar

Try something like this:
$the_file = $HTTP_POST_FILES['fileinputfieldname']['tmp_name'];
$thebindata = addslashes(fread(fopen($the_file, "r"), filesize($the_file)));


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to