Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 779BC9FB678 for ; Wed, 13 Jun 2007 17:40:04 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 71726-08 for ; Wed, 13 Jun 2007 17:39:55 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from developer.pgadmin.org (developer.pgadmin.org [63.246.23.140]) by postgresql.org (Postfix) with ESMTP id 03F029FB68B for ; Wed, 13 Jun 2007 17:40:00 -0300 (ADT) Received: from snake.local ([89.243.91.182]) (authenticated bits=0) by developer.pgadmin.org (8.13.8/8.13.8) with ESMTP id l5DKNY1Z026381 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 13 Jun 2007 20:23:36 GMT Message-ID: <4670561B.8020301@postgresql.org> Date: Wed, 13 Jun 2007 21:39:55 +0100 From: Dave Page User-Agent: Thunderbird 2.0.0.0 (Macintosh/20070326) MIME-Version: 1.0 To: Mihail Mihailov CC: pgsql-php@postgresql.org Subject: Re: php, postgresql and graphical images References: <20070613115155.uykzmxtvxueoo4w8@imp3.uta.fi> <466FB441.6000204@postgresql.org> <20070613230611.mewiitg4mnco8kwo@imp3.uta.fi> In-Reply-To: <20070613230611.mewiitg4mnco8kwo@imp3.uta.fi> X-Enigmail-Version: 0.95.1 OpenPGP: url=http://www.pgadmin.org/pgp/davepage.pgp Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/7 X-Sequence-Number: 3809 Mihail Mihailov wrote: > Hi Dave and thanks for advice. > > You show in your example how to create an html file containing only one > picture. > How do you insert multiple graphical images into a "mixed" document > containing text and graphical images? > Do I still have to save bytea data into a temporary file (how?) and than > get in with tag? No, I showed how to return an image in response to a http request using php, e.g: http://www.jo-jos-jewellery.co.uk/system/showimage.php?id=85495. No HTML or text was served at al. That URL (or variations thereof) can be used directly in an tag as many times as you want in a single HTML document. Regards, Dave.