problem : InputStream as parameter not supported

Поиск
Список
Период
Сортировка
От Rafal Piotrowski (CSCS)
Тема problem : InputStream as parameter not supported
Дата
Msg-id 383A7678.F9288377@CSCS.CH
обсуждение исходный текст
Список 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.Piotrowski@CSCS.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          :
..............................................................................


В списке pgsql-interfaces по дате отправления:

Предыдущее
От: Michael Meskes
Дата:
Сообщение: header problem
Следующее
От: "Rafal Piotrowski (CSCS)"
Дата:
Сообщение: LargeObject.write(byte[] buf) method