X-Original-To: pgsql-ports-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 89487D6F40 for ; Tue, 23 Aug 2005 08:18:22 -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 06945-01 for ; Tue, 23 Aug 2005 11:18:19 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.195]) by svr1.postgresql.org (Postfix) with ESMTP id B9FE8D6F33 for ; Tue, 23 Aug 2005 08:18:17 -0300 (ADT) Received: by wproxy.gmail.com with SMTP id i22so159625wra for ; Tue, 23 Aug 2005 04:18:21 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=riRzHq8OgJaAO/U45HIdKASSLWPFJvNiHwxKFUlvVMBXOiCL05SjRgQX2CrvOk1xDeiipFluNv2N23tA/6rGZJK6rlFa1pb7ZN/D5N9U8CL0GnpfGOkwkJcr/3OyQJDj7qpN55hZjWujo9GY/o5CBqP4a/H2AyoRv+pfeKGZIs8= Received: by 10.54.123.17 with SMTP id v17mr2139656wrc; Tue, 23 Aug 2005 04:18:21 -0700 (PDT) Received: by 10.54.83.16 with HTTP; Tue, 23 Aug 2005 04:18:21 -0700 (PDT) Message-ID: <7be35168050823041881fee19@mail.gmail.com> Date: Tue, 23 Aug 2005 19:18:21 +0800 From: Erick Bautista To: pgsql-ports@postgresql.org Subject: Invalid Input Syntax for type Bytea Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.54 required=5 tests=[FROM_ENDS_IN_NUMS=0.516, RCVD_BY_IP=0.024] X-Spam-Level: X-Archive-Number: 200508/13 X-Sequence-Number: 2188 Good Evening! Our team is currently porting from Oracle to PostGreSQL. =20 For BLOBs in Oracle we used bytea datatype in PostGreSQL. =20 Whenever we insert a binary data in the DB, we get 'Invalid Input Syntax for type Bytea'. I understand that we need to use PQescapeBytea before putting the binary string in the SQL statement, however, the same error appears even if we use it. Can somebody give us some advise on how to properly insert Bytea data in PostGreSQL. By the way, we are using ECPG.=20 Thank you! --=20 Erick