Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 3A6E49FB4E3 for ; Wed, 13 Jun 2007 18:47:55 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 27769-08 for ; Wed, 13 Jun 2007 18:47:47 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from rehuapila.uta.fi (rehuapila.uta.fi [153.1.1.45]) by postgresql.org (Postfix) with ESMTP id 755559FB502 for ; Wed, 13 Jun 2007 18:47:51 -0300 (ADT) Received: from valkoapila.uta.fi (valkoapila.uta.fi [153.1.1.42]) by rehuapila.uta.fi (8.13.8/8.13.8) with ESMTP id l5DLlnqp022365 for ; Thu, 14 Jun 2007 00:47:49 +0300 (EEST) Received: from apila.uta.fi (localhost.localdomain [127.0.0.1]) by valkoapila.uta.fi (8.13.8/8.13.8) with ESMTP id l5DLlmOU002470 for ; Thu, 14 Jun 2007 00:47:48 +0300 Received: from pippuri.uta.fi (pippuri.uta.fi [153.1.6.42]) by apila.uta.fi (8.13.8/8.13.8) with ESMTP id l5DLlmRj028116 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Thu, 14 Jun 2007 00:47:48 +0300 (EEST) Received: from pippuri.uta.fi (localhost.localdomain [127.0.0.1]) by pippuri.uta.fi (8.13.4/8.13.4/Debian-3sarge3) with ESMTP id l5DLlmv4011708 for ; Thu, 14 Jun 2007 00:47:48 +0300 Received: (from wwwroot@localhost) by pippuri.uta.fi (8.13.4/8.13.4/Submit) id l5DLlmIT011707 for pgsql-php@postgresql.org; Thu, 14 Jun 2007 00:47:48 +0300 Received: from a81-197-58-174.elisa-laajakaista.fi (a81-197-58-174.elisa-laajakaista.fi [81.197.58.174]) by imp3.uta.fi (Horde MIME library) with HTTP; Thu, 14 Jun 2007 00:47:48 +0300 Message-ID: <20070614004748.tojnkdvei0tcgw08@imp3.uta.fi> Date: Thu, 14 Jun 2007 00:47:48 +0300 From: Mihail Mihailov To: 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> <4670561B.8020301@postgresql.org> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1"; delsp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.5-cvs) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (apila.uta.fi [153.1.1.41]); Thu, 14 Jun 2007 00:47:48 +0300 (EEST) X-Scanned-By: MIMEDefang 2.62 on 153.1.1.42 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/9 X-Sequence-Number: 3811 Dave and Colin! Thanks a lot. Now it works fine! Mike Quoting Colin Ross : > Using that, you could just point the src atribute of an img tag to that u= rl, > > > echo $imgId ?>" /> > > OR present the data inline using the object tag (but that gets tricky fyi > and cane be kinda slow for all but the most trivial of images [hence why = its > highly discouraged by the w3c] > > ... > data=3D"data:image/jpeg;base64, *...base64 data...*"> > A Necklace > > > Again, I **highly** recommend the first method > > Colin > > > > > > http://www.w3.org/TR/html401/struct/objects.html#h-13.2 > > > On 6/13/07, Dave Page wrote: >> >> 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. >> >> >> ---------------------------(end of broadcast)--------------------------- >> TIP 6: explain analyze is your friend >> --=20 Mihail Mihailov, lehtori K=E4=E4nn=F6stiede (ven=E4j=E4) Kieli- ja k=E4=E4nn=F6stieteiden laitos 33014 Tampereen yliopisto puh. (03) 3551 6123