Re: jdbc lob and postgresql

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: jdbc lob and postgresql
Date: 2007-12-12 23:13:07
Message-ID: fjppu4$nj3$1@ger.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Anu Padki wrote on 12.12.2007 20:09:
> Hello all,
>
> I am contemplating to use postgresql for a product that requires to
> manipulate many blobs.
> From the documentation I am not clear if one has to use postgres api to
> insert/update/select blobs or one can use standard jdbc api?
> Can I just execute a statement insert into (..) that has a blob and do a
> getBlob to retrieve it?

Using a PreparedStatement with setBinaryStream() to insert the blob and
getBinaryStream() to read the BLOB works fine for me.

Thomas

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jorge Godoy 2007-12-12 23:25:27 Re: Hijack!
Previous Message Ben 2007-12-12 22:58:46 Insert/Update/Delete views with INSTEAD OF