Re: BLOB help - yes I've read around!

Поиск
Список
Период
Сортировка
От Thomas Kellerer
Тема Re: BLOB help - yes I've read around!
Дата
Msg-id grgham$q84$1@ger.gmane.org
обсуждение исходный текст
Ответ на Re: BLOB help - yes I've read around!  (Brad Milne <mail_4brad@yahoo.co.uk>)
Ответы Re: BLOB help - yes I've read around!
Список pgsql-jdbc
Brad Milne wrote on 07.04.2009 23:34:
> For completeness, here is the setter again
> with a couple of fixes:
>
> stmt.setBinaryStream(2,in,in.available());

Do not use availabe()

This will *not* give you the number of bytes that are "available" in the stream.

Read the Javadocs carefully: it will give you the number of bytes that can be
/read without blocking/

Most of the time this will not be the length of the stream.

Thomas

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

Предыдущее
От: Brad Milne
Дата:
Сообщение: Re: BLOB help - yes I've read around!
Следующее
От: Brad Milne
Дата:
Сообщение: Re: BLOB help - yes I've read around!