Re: how to display images stored in DB
| From: | Kevin Waterson | Date: | Mon, 26 Feb 2007 02:28:25 +0000 |
| Subject: | Re: how to display images stored in DB | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-249426@lists.php.net to get a copy of this message | ||
This one time, at band camp, "Alain Roger" <raf.news@gmail.com> wrote:
> Hi,
>
> i stored all my pictures in my PostgreSQL DB as bytea type.
> Now i would like to know how can i display them in my PHP pages ?
Here is a little tutorial on the subject, it uses MySQL and PDO but
you simply need to change the connection string to PDO to pgsql.
http://phpro.org/tutorials/Storing-Images-in-MySQL-with-PHP.html
enjoy
Kevin
--
"Democracy is two wolves and a lamb voting on what to have for lunch.
Liberty is a well-armed lamb contesting the vote."