Skip site navigation (1) Skip section navigation (2)

Re: php, postgresql and graphical images

From: Mihail Mihailov <Mihail(dot)Mihailov(at)uta(dot)fi>
To: pgsql-php(at)postgresql(dot)org
Subject: Re: php, postgresql and graphical images
Date: 2007-06-13 21:47:48
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-php
Dave and Colin!

Thanks a lot. Now it works fine!


Quoting Colin Ross <colinross(at)gmail(dot)com>:

> Using that, you could just point the src atribute of an img tag to that url,
> <img src="<?php
> 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]
> <OBJECT id="necklace"
> ...
>        data="data:image/jpeg;base64, *...base64 data...*">
>    A Necklace
> Again, I **highly** recommend the first method
> Colin
> On 6/13/07, Dave Page <dpage(at)postgresql(dot)org> 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 <img> tag?
>> No, I showed how to return an image in response to a http request using
>> php, e.g:
>>…495. No HTML
>> or text was served at al. That URL (or variations thereof) can be used
>> directly in an <img> tag as many times as you want in a single HTML
>> document.
>> Regards, Dave.
>> ---------------------------(end of broadcast)---------------------------
>> TIP 6: explain analyze is your friend

Mihail Mihailov, lehtori
Käännöstiede (venäjä)
Kieli- ja käännöstieteiden laitos
33014 Tampereen yliopisto
puh. (03) 3551 6123

In response to

pgsql-php by date

Next:From: Dani CastañosDate: 2007-06-21 08:41:12
Subject: Alphabetic Pager Class
Previous:From: Colin RossDate: 2007-06-13 20:58:22
Subject: Re: php, postgresql and graphical images

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group