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 B5DE952906 for ; Fri, 3 Jun 2005 14:55:08 -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 32274-08 for ; Fri, 3 Jun 2005 17:54:58 +0000 (GMT) Received: from brasil.brainstorm.fr (brasil.brainstorm.fr [193.56.58.33]) by svr1.postgresql.org (Postfix) with ESMTP id 98E5F528D1 for ; Fri, 3 Jun 2005 14:54:57 -0300 (ADT) Received: by brasil.brainstorm.fr (Postfix, from userid 1005) id 4E3C626AF21; Fri, 3 Jun 2005 19:54:56 +0200 (CEST) Content-Type: text/plain; charset="iso-8859-15" Content-Disposition: inline Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-Mailer: Manitou v0.9.6 From: "Daniel Verite" Subject: Re: libpq, PQExecParams and the inserting of binary data To: "David Hinkle" Cc: pgsql-interfaces@postgresql.org In-Reply-To: Date: Fri, 03 Jun 2005 19:54:52 +0200 Message-Id: <20050603195051.9437476@localhost> X-Face: 0N#]; "Miw2ss`WySq(ZLLy[=.ai4D}yI#'n*PU:{%/ZVSUd*G$EuN$v@TyBnpW5x=-m*Jc?Cm&=kXN#l; pePLb!,P.9D4M]fHU+XMPTe(>>'( X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.023 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200506/10 X-Sequence-Number: 5578 David Hinkle wrote: > 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: > [...] This code snippet may help you getting started: http://archives.postgresql.org/pgsql-general/2004-07/msg00875.php -- Daniel PostgreSQL-powered mail user agent and storage: http://www.manitou-mail.org