X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 2874F52926 for ; Fri, 3 Jun 2005 15:05:41 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 39188-01 for ; Fri, 3 Jun 2005 18:05:38 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.193]) by svr1.postgresql.org (Postfix) with ESMTP id 8CC765290D for ; Fri, 3 Jun 2005 15:05:34 -0300 (ADT) Received: by wproxy.gmail.com with SMTP id 68so930718wra for ; Fri, 03 Jun 2005 11:05:36 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=c20ySDl7Qq7iXyG/CNIEQ2ZqbQ6BhRgaP4AB48Of1kw3VUOEbLYe8jun2YiL+dEzjkQzid00P+XAXGJhjxU7h+CVta0JtGRCA1tPkGaBjAXYJS1kvN5F51x7MWRhhJd+jOEtx7Kya3GOE393vD+hQfX3vO4FxbyzyPR3Lj7pOh0= Received: by 10.54.21.22 with SMTP id 22mr1359132wru; Fri, 03 Jun 2005 11:05:35 -0700 (PDT) Received: by 10.54.53.40 with HTTP; Fri, 3 Jun 2005 11:05:35 -0700 (PDT) Message-ID: Date: Fri, 3 Jun 2005 13:05:35 -0500 From: David Hinkle Reply-To: David Hinkle To: pgsql-interfaces@postgresql.org Subject: Re: libpq, PQExecParams and the inserting of binary data In-Reply-To: <20050603195051.9437476@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20050603195051.9437476@localhost> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.024 tagged_above=0 required=5 tests=RCVD_BY_IP X-Spam-Level: X-Archive-Number: 200506/12 X-Sequence-Number: 5580 Thankyou very much Daniel, I will try this. Out of curiosity, where does the value of 17 for the OID field come from? David On 6/3/05, Daniel Verite wrote: > David Hinkle wrote: >=20 > > I am trying to insert binary data into a bytea column with > > PQExecParams. I couldn't find any documentation on using PQExecParams > > with binary parameters, do I tried to do it this way: > > [...] >=20 > This code snippet may help you getting started: >=20 > http://archives.postgresql.org/pgsql-general/2004-07/msg00875.php >=20 > -- > Daniel > PostgreSQL-powered mail user agent and storage: http://www.manitou-mail.= org >=20 >