blob load in 7.2.3

From: "jonerf1" <jonesrf1(at)qwest(dot)net>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: blob load in 7.2.3
Date: 2002-10-16 04:26:14
Message-ID: 3DACEA66.50900@qwest.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

I changed the connection statement to 5432:/test3?compatability=7.1" and
the
blob load works. I still cant get the bytea example to compile without
an (int) in the file.length; and the sql gives an error about column
bytea versus loadvalue of integer, as previously noted today.
Both machines now load blobs using 7.1 compatability
The sql error refers to a cast ; how would I cast ?
I tried FileInputStream bytea fis, (2, (bytea)fis, (int)file.length()),
and 2,fis,bytea(file.length())
just banging on it, i dont really understand the sql error message, ie
what need to be cast?
TIA
rfjones

Browse pgsql-jdbc by date

  From Date Subject
Next Message Curt Sampson 2002-10-16 06:06:30 Re: [JDBC] Prepared statement performance...
Previous Message jonerf1 2002-10-16 03:23:41 Re: blob load errors