Re: pictures stored in PostgreSQL DB

From: Date: Sat, 03 Mar 2007 14:10:15 +0000
Subject: Re: pictures stored in PostgreSQL DB
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-249773@lists.php.net to get a copy of this message
On Sat, 2007-03-03 at 14:57 +0100, Alain Roger wrote: > Hi Rob, > > thanks for information. > As you told me i use 2 files to do what i need. 1 for displaying th > thumbnail and the other just to display the picture. > That's works great. > > However, how can i resize the picture (in my thumbnail) if my pictures are > stored to DB ? > i mean that my picture is stored in DB as bytea (so in base 8) and therefore > the imagecopyresampled or imagecopyresize functions do not work. > I also do not want to create a temporally file on the filesystem just to > hold the resized picture. > > So is there another possibility how to resize picture ? Did you read the following link in my previous email? http://ca.php.net/manual/en/function.imagecreatefromstring.php Cheers, Rob. -- .------------------------------------------------------------. | InterJinn Application Framework - http://www.interjinn.com | :------------------------------------------------------------: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `------------------------------------------------------------'

« previous php.general (#249773) next »