pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Problem with JDBC and Large Objects
2+ messages / 2 participants
[nested] [flat]

* Problem with JDBC and Large Objects
@ 2006-08-09 23:12  Randall Hauch <rhauch@revelytix.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Randall Hauch @ 2006-08-09 23:12 UTC (permalink / raw)
  To: pgsql-jdbc

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I'm using the latest JDBC driver (8.1-407) with PostgreSQL 8.1.3 (on
Windows) and PostgreSQL 8.1.4 (on Debian).&nbsp; I've searched the archives,
and found several applicable thread that were never responded to or
apparently resolved:<br>
<ul>
  <li><a class="moz-txt-link-freetext" href="http://archives.postgresql.org/pgsql-bugs/2001-04/msg00216.php">http://archives.postgresql.or...;
  <li><a class="moz-txt-link-freetext" href="http://mail-archive.objectweb.org/dods/2001-11/msg00007.html">http://mail-archive.objectweb.o...;
</ul>
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.&nbsp; 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.&nbsp; I've looked for a
configuration setting, but don't see anything of use.&nbsp; (The database or
client character encodings should not apply to binary data.)<br>
<br>
Any suggestions?&nbsp; Is this a bug?&nbsp; (If it is a bug, it seems hard to
believe that nobody has run across this.)<br>
<br>
Thanks in advance!<br>
<br>
Randall<br>
<br>
<br>
</body>
</html>




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Problem with JDBC and Large Objects
@ 2006-08-10 07:17  Oliver Jowett <oliver@opencloud.com>
  parent: Randall Hauch <rhauch@revelytix.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Oliver Jowett @ 2006-08-10 07:17 UTC (permalink / raw)
  To: Randall Hauch <rhauch@revelytix.com>; +Cc: pgsql-jdbc

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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2006-08-10 07:17 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-08-09 23:12 Problem with JDBC and Large Objects Randall Hauch <rhauch@revelytix.com>
2006-08-10 07:17 ` Oliver Jowett <oliver@opencloud.com>

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