Hi,
I'm using :
- Win NT 4.0 SP6
- Apache 1.3
- PHP 4.05
- MySQL 3.23
When I try to upload JPG files, the temporay files on the server are OK.
But when I store them into a BLOB field into mySQL, some images (not all)
are truncated after some lines.
It's like an EOF byte found ...
The SQL is:
$reqSQL = "UPDATE RESSOURCE SET NOM='".$fichier."'
,EXTENSION='".$extension."' ," ;                
$reqSQL .= " DATA=LOAD_FILE('".$ficherRessource."') WHERE
ID_RESSOURCE=".$id_ressource;

No problem with GIF files, and small JPG.
Any idea ?
Thanks
_______________________
Hervé  Debeire
mailto:[EMAIL PROTECTED]

COMTECH Software
BP 235 - 31677 Labege Cedex
Tel: 05 61 39 74 91
Fax: 05 61 39 86 67




---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to