problem : InputStream as parameter not supported

From: "Rafal Piotrowski (CSCS)" <Rafal(dot)Piotrowski(at)CSCS(dot)CH>
To: PostgreSQL Interfaces <pgsql-interfaces(at)postgreSQL(dot)org>
Subject: problem : InputStream as parameter not supported
Date: 1999-11-23 11:11:52
Message-ID: 383A7678.F9288377@CSCS.CH
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Hi,

Configuration:
- PostgreSQL 6.5.1
- JDBC for JDK 1.2

I have tried to use setBinaryStream method, but I am getting the
following error:
InputStream as parameter not supported

Here is how I use it:
ByteArrayInputStream from = new ByteArrayInputStream(bytes);
pst.setBinaryStream(6, from, bytes.length);

Does any one know when will it be supported?

The reason, why I'm using it is so I can store big binary data without
using LargeObject API.

thanks,

RP

--
..............................................................................
: Rafal Piotrowski :
mailto:Rafal(dot)Piotrowski(at)CSCS(dot)CH :
: Research Scientist :
http://www.cscs.ch/~rpiotrow :
: Centro Svizzero di Calcolo Scientifico : Tel.: +41 (0)91 610
8211 :
: Via Cantonale, Galleria 2 : +41 (0)91 610 8315
(direct) :
: CH-6928 Manno, Switzerland : Fax: +41 (0)91 610
8383 :
..............................................................................

Browse pgsql-interfaces by date

  From Date Subject
Next Message Rafal Piotrowski (CSCS) 1999-11-23 11:19:51 LargeObject.write(byte[] buf) method
Previous Message Michael Meskes 1999-11-23 10:09:18 header problem