On 2011-01-26, Bill Moran <wmoran@potentialtech.com> wrote:
> DO NOT use parametrized queries with PHP and bytea (I hate to say that,
> because parametrized fields are usually a very good idea). PHP has a
> bug that mangles bytea data when pushed through parametrized fields.
>
> PHP bug #35800
OOTOH pg_insert() and pg_update() work well with bytea data
--
⚂⚃ 100% natural