Re: Store and retrieve photo from PostgreSQL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Alain Roger wrote:
Hi,

I would like to store and retrieve photo from my DB (PostgreSQL).
However, i do not know how to do it.

Apart from the usual "you shouldn't really store images in the database" comment, the php site has some examples:

To put it in:
http://www.php.net/manual/en/function.pg-escape-bytea.php

To take it back out:
http://www.php.net/manual/en/function.pg-unescape-bytea.php

--
Postgresql & php tutorials
http://www.designmagick.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux