Problems while inserting an image into MSSQL
| From: | Hugo Alexandre Almeida Soares Dias | Date: | Mon, 07 May 2001 13:30:12 +0000 |
| Subject: | Problems while inserting an image into MSSQL | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-7334@lists.php.net to get a copy of this message | ||
Hi,
I'm having a problem when 'm trying to insert an image into a image field
in MSSQL.
Does anyone know's how to solve my problem?
Before inserting the image, i execute this piece of code:
if (!($fp=fopen($file,"r"))) echo "ERRO NO FREAD: $fp";
$banner=str_replace("'","''",fread($fp,
filesize($file)));
fclose($fp);
Thank you.
P.S. I placed into the reply-to my other e-mail hugo@mni.pt. Please add it
to the reply.
Hugo Alexandre Dias
Eng. Sistemas Informática
anikin@ip.pt