For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > November 2004 > Re: [PHP-DB] can i display an image _directly_ from postgres db









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-DB] can i display an image _directly_ from postgres db
Robby Russell

2004-11-02, 3:55 pm

On Mon, 2004-11-01 at 21:36 -0600, 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?


This example uses large objects, you can try to use the same logic and
use the bytea field.

http://blog.planetargon.com/index.p...t_with_PHP.html


--
/***************************************
* Robby Russell | Owner.Developer.G
* PLANET ARGON | www.planetargon.com
* Portland, OR | robby@planetargon.com
* 503.351.4730 | blog.planetargon.com
* PHP/PostgreSQL Hosting & Development
* --- Now supporting PHP5 ---
****************************************
/

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com