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

Reply via email to