Re: updateBlob()-example?

From: Kris Jurka <books(at)ejurka(dot)com>
To: Guido Fiala <guido(dot)fiala(at)dka-gmbh(dot)de>
Cc: <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: updateBlob()-example?
Date: 2004-02-12 09:05:15
Message-ID: Pine.LNX.4.33.0402120351290.14952-100000@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On Thu, 12 Feb 2004, Guido Fiala wrote:

> Hallo together,
>
> maybe someone can help - i can get updateBlob() working and i couldn't find
> any working example so far.
>

It is entirely unclear what your column's underlying data type is, for
binary data it should be oid or bytea, but the only mention of datatype in
your email is varchar. The Blob interface only works with the oid
datatype and large object method and even then support is poor. JDBC3 has
added write support for blobs, but these have not been implemented in the
pg JDBC driver. If you want to use large objects the easiest way is to
pass compatible=7.1 as a URL parameter and then use setBytes/getBytes.
Could you be more clear on what you want to do and where it is failing?
The numerous one line snippets you have included aren't clear and actually
seem contradictory to me.

Kris Jurka

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Guido Fiala 2004-02-12 09:37:08 Re: updateBlob()-example?
Previous Message Xavier Maysonnave 2004-02-12 08:52:40 License