Re: Example Code breaks.

Поиск
Список
Период
Сортировка
От Marin Dimitrov
Тема Re: Example Code breaks.
Дата
Msg-id 01aa01c1ef56$bdbe5d40$9b0e32d4@sirma.bg
обсуждение исходный текст
Ответ на Example Code breaks.  (john-paul delaney <jp@justatest.com>)
Ответы Re: Example Code breaks.  (john-paul delaney <jp@justatest.com>)
Список pgsql-jdbc
----- Original Message -----
From: "john-paul delaney"

> Seems there's a mismatch of data types between int and long of InputStream
and FileInputStream of java.io?  How to cast one so it's type is compatible
with the other?
>

try with

ps.setBinaryStream(2, fis, (int)file.length());


hth,

    Marin

----
"...what you brought from your past, is of no use in your present. When
you must choose a new path, do not bring old experiences with you.
Those who strike out afresh, but who attempt to retain a little of the
old life, end up torn apart by their own memories. "





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

Предыдущее
От: john-paul delaney
Дата:
Сообщение: Example Code breaks.
Следующее
От: Chantal Ackermann
Дата:
Сообщение: Re: Forward to another server (Forward para outro servidor)