X-Original-To: pgsql-jdbc-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 5A2029FB2D5 for ; Thu, 10 Aug 2006 04:18:04 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 42273-03 for ; Thu, 10 Aug 2006 04:17:54 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [131.203.101.226]) by postgresql.org (Postfix) with ESMTP id 15A2F9FB2E3 for ; Thu, 10 Aug 2006 04:17:54 -0300 (ADT) Received: from 203-118-178-246.bliink.ihug.co.nz ([203.118.178.246] helo=[10.1.1.6]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1GB4ng-0001sC-6z; Thu, 10 Aug 2006 19:17:52 +1200 Message-ID: <44DADD9E.9090108@opencloud.com> Date: Thu, 10 Aug 2006 19:17:50 +1200 From: Oliver Jowett User-Agent: Mozilla Thunderbird 1.0.8 (X11/20060502) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Randall Hauch CC: pgsql-jdbc@postgresql.org Subject: Re: Problem with JDBC and Large Objects References: <44DA6BC2.7040903@revelytix.com> In-Reply-To: <44DA6BC2.7040903@revelytix.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.033 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200608/56 X-Sequence-Number: 15583 Randall Hauch wrote: > I'm using the latest JDBC driver (8.1-407) with PostgreSQL 8.1.3 (on > Windows) and PostgreSQL 8.1.4 (on Debian). I've searched the archives, > and found several applicable thread that were never responded to or > apparently resolved: > > * http://archives.postgresql.org/pgsql-bugs/2001-04/msg00216.php > * http://mail-archive.objectweb.org/dods/2001-11/msg00007.html > > I'm using JDBC to store (binary) files in a database, and have tried > storing the content in a BYTEA column and using the Large Object API and > storing a OID column in my table. So.. which one did you see the problem with, LOB or bytea? > I am able to upload various files > into the database, but when I download them the 0xFF characters in the > uploaded files have all been stripped. I've looked for a configuration > setting, but don't see anything of use. (The database or client > character encodings should not apply to binary data.) Weird. Do you have a testcase I can try? -O