X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 3284253E33 for ; Wed, 11 May 2005 17:35:46 -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 84454-05 for ; Wed, 11 May 2005 20:35:45 +0000 (GMT) Received: from mail.refractions.net (mail.refractions.net [24.68.236.214]) by svr1.postgresql.org (Postfix) with ESMTP id E5D6F53E0C for ; Wed, 11 May 2005 17:35:43 -0300 (ADT) Received: from [192.168.50.92] (unknown [192.168.50.92]) by mail.refractions.net (Postfix) with ESMTP id 9F201122C250 for ; Wed, 11 May 2005 13:45:32 -0700 (PDT) Subject: bytea encoding From: Jesse Eichar To: pgsql-jdbc@postgresql.org Content-Type: text/plain Organization: Refractions Research Inc. Date: Wed, 11 May 2005 13:37:29 -0700 Message-Id: <1115843849.5221.28.camel@weasel> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-4) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.07 tagged_above=0 required=5 tests=DNS_FROM_AHBL_RHSBL X-Spam-Level: X-Archive-Number: 200505/49 X-Sequence-Number: 12880 Hi I am doing some feasibility research and have some questions about bytea: 1. Is the byte stream (or byte array) converted to bytea on the database side or on client before sending? (My client is using the postgresql-74.213.jar). 2. If client does the encoding what will happen if the database receives information that is already in bytea? Will it recognize that the data is already in bytea? 3. Is there a way to convert an array of bytes into an array of bytea values? Thank you, Jesse