Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id A8F2E475DA7 for ; Tue, 22 Oct 2002 15:58:53 -0400 (EDT) Received: from cwbone.bsi.com.br (cwbone.bsi.com.br [200.194.240.1]) by postgresql.org (Postfix) with ESMTP id 994ED476021 for ; Tue, 22 Oct 2002 15:58:51 -0400 (EDT) Received: from bsi.com.br (BSI16-200.bsi.com.br [200.189.16.200]) by cwbone.bsi.com.br (8.12.6/8.12.6) with ESMTP id g9MJww7g016060 for ; Tue, 22 Oct 2002 16:59:00 -0300 (BRT) Message-ID: <3DB59FE3.50703@bsi.com.br> Date: Tue, 22 Oct 2002 16:58:43 -0200 From: =?ISO-8859-1?Q?Crist=F3v=E3o_Dalla_Costa?= User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2b) Gecko/20021016 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-interfaces@postgresql.org Subject: DBD::Pg and binary data Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/69 X-Sequence-Number: 3231 Hi 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. Thanks in advance. Cristóvão