Re: binary data

From: Anders Hermansen <anders(at)yoyo(dot)no>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: binary data
Date: 2003-03-02 13:21:00
Message-ID: 20030302132100.GA18201@online.no
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

* Uwe Kubosch (donv(at)crusaders(dot)no) wrote:
> Hi all!

Hi

> I fetch the image back from the database with code similar to this:
>
> String query;
> ResultSet resultSet;
>
> query = "SELECT content FROM tfile WHERE id=4";
> resultSet = null;
>
> try {
> boolean more;
>
> resultSet = executeTheQuery(query);
> more = resultSet.next();
>
> if (more) {
> InputStream is;
>
> is = resultSet.getBinaryStream("content");
> setContent(is);

Why don't you show us the setContent method?

> }
> } catch (SQLException anSQLException) {
> }

Anders

--
Anders Hermansen
YoYo Mobile as

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Uwe Kubosch 2003-03-02 13:24:30 Re: binary data
Previous Message Uwe Kubosch 2003-03-02 12:52:19 binary data