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 5277C5292A for ; Fri, 3 Jun 2005 15:09:12 -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 39734-03 for ; Fri, 3 Jun 2005 18:09:06 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.197]) by svr1.postgresql.org (Postfix) with ESMTP id 6DFA352921 for ; Fri, 3 Jun 2005 15:09:04 -0300 (ADT) Received: by wproxy.gmail.com with SMTP id 68so932027wra for ; Fri, 03 Jun 2005 11:09:06 -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=H6zClIUkY1MWpIKbcbeoxIBmgU+s15w7fe50fUBXRBJ+630w1EkCPHjC4uDoD86Dwt12SW5Vp8a0y2S/mIGnfmPuqatLMf+7PUJJhQC3m1WEbajIeQYqca4JDy3bpRgdiF9lbWndWx8CTmmBW/c4LB/lxiKdxVxV/7wffUIP5Dc= Received: by 10.54.57.66 with SMTP id f66mr1354789wra; Fri, 03 Jun 2005 11:09:06 -0700 (PDT) Received: by 10.54.53.40 with HTTP; Fri, 3 Jun 2005 11:09:05 -0700 (PDT) Message-ID: Date: Fri, 3 Jun 2005 13:09:05 -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=AWL, RCVD_BY_IP X-Spam-Level: X-Archive-Number: 200506/13 X-Sequence-Number: 5581 Oh, and another thing Daniel, Is it neccissary to provide the OID of the other fields even though they're provided in text format? I guess what I really need to understand is what the OID field is and how to use it. 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 >