Re: can i display an image _directly_ from postgres db storage?
| From: | Jason Wong | Date: | Tue, 02 Nov 2004 12:45:21 +0000 |
| Subject: | Re: can i display an image _directly_ from postgres db storage? | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-37118@lists.php.net to get a copy of this message | ||
On Tuesday 02 November 2004 03:36, P. George wrote:
> i know that postgres has a raw binary datatype called bytea for storing
> pictures and whatnot, but i'm having trouble finding an example of
> displaying an image on a web page with php that is pulled directly from
> the database?
>
> is this possible?
Yes.
> if so, how?
Tutorials that shows how to upload and store image/binary files in a database
also usually shows how to retrieve them (and in the case of images, also how
to display them).
One function you'll find useful is
imagecreatefromstring()
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-db
------------------------------------------
/*
There are a lot of lies going around.... and half of them are true.
-- Winston Churchill
*/