Re: org.postgresql package

From: Dave Harkness <daveh(at)MEconomy(dot)com>
To: "Swati" <swatisdesai(at)rediffmail(dot)com>, <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: org.postgresql package
Date: 2001-10-03 19:40:39
Message-ID: 5.1.0.14.2.20011003123730.00abf1e8@mail.meconomy.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

At 11:26 PM 10/2/2001, Swati wrote:
>InputStream is = rs.getBinaryStream();
>
>but it gives me compilation error:
>
>cannot resolve symbol
>symbol : method getBinaryInputStream ()

You need to specify the column index or name to access as a BinaryStream:

InputStream is = rs.getBinaryStream(1);

or

InputStream is = rs.getBinaryStream("data");

The methods are declared in java.sql.ResultSet and are not specific to
Postgres.

Peace,
Dave

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Harkness 2001-10-03 19:44:17 Re: java.lang.OutOfMemory Exception with a large number
Previous Message Rene Pijlman 2001-10-03 17:45:17 Re: java.lang.OutOfMemory Exception with a large number of inserts