Hi, you can do something like this :
<!-- code --> $imgdata = addslashes(imagejpeg($imnew)); // For JPG file. $query="INSERT INTO your_table (data) value ('$imgdata')"; $result = @mysql_query($query); <!-- /code --> I haven't try but it may work... Regards. P.E. Baroiller "Mohammadreza Hassanrezaeian" <[EMAIL PROTECTED]> a écrit dans le message de news:[EMAIL PROTECTED] > Dear Guys, > I want to store an image created by GD functions to a field of my DB. I can > not save it to a string to save it to blob field. Can any one help me with a > simple sample code? > Regards, > Mohammad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php