From: Oliver Jowett <oliver@opencloud.com>
To: Randall Hauch <rhauch@revelytix.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Problem with JDBC and Large Objects
Date: Thu, 10 Aug 2006 19:17:50 +1200
Message-ID: <44DADD9E.9090108@opencloud.com> (raw)
In-Reply-To: <44DA6BC2.7040903@revelytix.com>
References: <44DA6BC2.7040903@revelytix.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: oliver@opencloud.com, rhauch@revelytix.com
Subject: Re: Problem with JDBC and Large Objects
In-Reply-To: <44DADD9E.9090108@opencloud.com>
References: <44DA6BC2.7040903@revelytix.com> <44DADD9E.9090108@opencloud.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox