Re: Sotre image created by GD in db

From: Date: Sat, 30 Aug 2003 18:29:43 +0000
Subject: Re: Sotre image created by GD in db
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-161264@lists.php.net to get a copy of this message
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" <mohammad@yazd.info> a écrit dans le message de news:20030830100159.56449.qmail@pb1.pair.com... > 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

« previous php.general (#161264) next »