hi
is it possible to shift image data into a mysql database without using a file upload form?
present code:
$data = addslashes(fread(fopen($image, "r"), filesize($away)));
$query = "UPDATE field SET image='$data' WHERE id='1'";
mysql_query($query);
the above code works fine when $image is stored from a file upload box on a previous page, however i want the upload process to be transparent and without user intervention
adding:
$image="http://location/of/image.gif";
to the above code does not work correctly
i did find http://php.holtsmark.no/base64img/ which is along the lines of what i am looking for, but it increases the size of the image stored and needs to have encoding and decoding added to my script, which i would like to stay away from
is there a particular way i can "hard-code" an image without encryption into my scripts?
BoB.