Re: Example Code breaks.

From: "Marin Dimitrov" <marin(dot)dimitrov(at)sirma(dot)bg>
To: "john-paul delaney" <jp(at)justatest(dot)com>, <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Example Code breaks.
Date: 2002-04-29 08:20:36
Message-ID: 01aa01c1ef56$bdbe5d40$9b0e32d4@sirma.bg
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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. "

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Chantal Ackermann 2002-04-29 09:03:31 Re: Forward to another server (Forward para outro servidor)
Previous Message Dave Cramer 2002-04-28 19:38:18 Re: Updateable result set