pg.ddx.io pgsql-jdbc@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Sven Köhler <skoehler@upb.de>
To: pgsql-jdbc@postgresql.org
Cc: pgsql-jdbc@postgresql.org
Subject: Re: BLOBs etc
Date: Fri, 07 Jan 2005 04:04:38 +0100
Message-ID: <41DDFC46.1080807@upb.de> (raw)
In-Reply-To: <Pine.BSO.4.56.0501062135090.10098@leary.csoft.net>
References: <crkrbc$t8c$1@sea.gmane.org>
<Pine.BSO.4.56.0501062135090.10098@leary.csoft.net>
>>on the jdbc-webpages it says, that the JDBC team may decide to change
>>getBLOBG/setBLOB to support bytea only, and that one should use the
>>PostGreSQL specific LargeObject extension to acces them.
>
> I'm not sure where it says that, but it is either out of date or just
> plain bad advice. If you could point out where it says that I'd
> appreciate it. I would stick withe the standard Blob interface for now.
http://www.postgresql.org/docs/7.4/static/jdbc-binary-data.html
There is says:
Note: In a future release of the JDBC driver, the getBLOB() and
setBLOB() methods may no longer interact with Large Objects and will
instead work on the data type bytea. So it is recommended that you use
the LargeObject API if you intend to use Large Objects.
BTW: why don't getInputStream/getBLOB/... work for _both_, bytea and
oid? Shouldn't the JDBC driver be abled to determine the used datatype
and act accordingly? I'm sure you had you reasons. I'd just like to know
them.
view thread (23+ messages) latest in thread
Message-ID: <41DDFC46.1080807@upb.de> Permalink: ../41DDFC46.1080807@upb.de/ Also on: postgresql.org/message-id/41DDFC46.1080807@upb.de ·
reply
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: skoehler@upb.de Subject: Re: BLOBs etc In-Reply-To: <41DDFC46.1080807@upb.de> References: <crkrbc$t8c$1@sea.gmane.org> <Pine.BSO.4.56.0501062135090.10098@leary.csoft.net> <41DDFC46.1080807@upb.de> * 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