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 0EB9256369 for ; Mon, 14 Mar 2005 07:34:18 +0000 (GMT) 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 10650-06 for ; Mon, 14 Mar 2005 07:34:10 +0000 (GMT) Received: from outmx023.isp.belgacom.be (outmx023.isp.belgacom.be [195.238.2.204]) by svr1.postgresql.org (Postfix) with ESMTP id DC37C55F20 for ; Mon, 14 Mar 2005 07:34:08 +0000 (GMT) Received: from outmx023.isp.belgacom.be (localhost [127.0.0.1]) by outmx023.isp.belgacom.be (8.12.11/8.12.11/Skynet-OUT-2.22) with ESMTP id j2E7Y2Xv012140 for ; Mon, 14 Mar 2005 08:34:02 +0100 (envelope-from ) Received: from [10.0.0.5] (145-220.242.81.adsl.skynet.be [81.242.220.145]) by outmx023.isp.belgacom.be (8.12.11/8.12.11/Skynet-OUT-2.22) with ESMTP id j2E7XtJF012088 for ; Mon, 14 Mar 2005 08:33:55 +0100 (envelope-from ) Mime-Version: 1.0 (Apple Message framework v619.2) In-Reply-To: <423433C6.7090805@opencloud.com> References: <5bd6ef364cb5f644245035172a720b30@freeshell.org> <42320813.9040605@opencloud.com> <423433C6.7090805@opencloud.com> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <2302fe0996e9f6e79e369b747b35385a@freeshell.org> Content-Transfer-Encoding: 7bit From: patrick Subject: Re: Cannot Retrieve Binary Data Date: Mon, 14 Mar 2005 08:33:55 +0100 To: pgsql-jdbc@postgresql.org X-Mailer: Apple Mail (2.619.2) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.369 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_WHOIS X-Spam-Level: X-Archive-Number: 200503/140 X-Sequence-Number: 12532 On 13 Mar 2005, at 13:36, Oliver Jowett wrote: > > You need to use the binary parameter/result format (at the protocol > level). The current JDBC driver uses the binary format for bytea > parameters, but the text format for resultsets. psql uses the text > format for both, I believe. Thanks for the suggestion i will try again >> FYI: >> i tried the same Test with postgres 7.4.7 and earlier and is even >> worst i was not able to insert. >> The JDBC Driver Return Out_Of_Memory during the query execution > > I assume you mean with an earlier version of the driver? Earlier > driver versions used the text format for both parameters and results, > and also used a large amount of temporary heap space for large bytea > parameters. both earlier driver and earlier version of postgresql now i undestand why my tests were failing. > You may want to look at using the large-object interface if you are > dealing with extremely large data; it allows random read/write access > to the data without transferring it all across the wire in one go. Yes it appear the be the best solution.. thanks for you help -patrick