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 BEC6852813 for ; Tue, 17 May 2005 15:11:59 -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 69438-04 for ; Tue, 17 May 2005 18:11:51 +0000 (GMT) Received: from mail63.csoft.net (leary3.csoft.net [63.111.22.74]) by svr1.postgresql.org (Postfix) with SMTP id 8EAA952804 for ; Tue, 17 May 2005 15:11:50 -0300 (ADT) Received: (qmail 10891 invoked by uid 1112); 17 May 2005 18:11:51 -0000 Date: Tue, 17 May 2005 13:11:51 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Dilan Cc: pgsql-jdbc@postgresql.org Subject: Re: Saving currupting binary data into the database when In-Reply-To: <200505170036.j4H0aJGB000427@internal.waterfind.com.au> Message-ID: References: <200505170036.j4H0aJGB000427@internal.waterfind.com.au> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.011 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200505/80 X-Sequence-Number: 12911 On Tue, 17 May 2005, Dilan wrote: > I'm using hibernate to connect postgresql via java, and I'm trying to save a > image as a binary file, > Sending this as html email makes it difficult to read. Please stick to plain text. Also it is not clear what hibernate is doing under the hood, so this may be a question for a hibernate person. Anyway, older server versions (early 7.3 series) have a bug that corrupts bytea data, you aren't running one of those are you? If you can provide a complete example using only JDBC calls I'd be interested, but I don't know what else I can do for you now. Kris Jurka