On Tue, 22 Oct 2002, Bruce Momjian wrote:

> > I've stumbled across a problem inserting binary data (jpeg and png
> > images) into bytea fields. DBD::Pg doesn't do the proper scaping, and
> > I'm quite unsure of how to do it properly. Of course, I could just use
> > base64 but I'd like to be able to service the data without another
> > decoding pass.

This is exactly what I saw as well.  I think David Wheeler's proposal
earlier handles this, though using pqEscapeBytea if its available may be
preferable (and faster?).

Anyway, fixing this bug would be a great goal for the next release ;)


-dave

/*==================
www.urth.org
we await the New Sun
==================*/

Reply via email to