Re: Example Code breaks. - Mailing list pgsql-jdbc

From Marin Dimitrov
Subject Re: Example Code breaks.
Date
Msg-id 01aa01c1ef56$bdbe5d40$9b0e32d4@sirma.bg
Whole thread Raw
In response to Example Code breaks.  (john-paul delaney <jp@justatest.com>)
Responses Re: Example Code breaks.  (john-paul delaney <jp@justatest.com>)
List 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 by date:

Previous
From: john-paul delaney
Date:
Subject: Example Code breaks.
Next
From: Chantal Ackermann
Date:
Subject: Re: Forward to another server (Forward para outro servidor)