lo_in: error in parsing

From: Luca Saccarola <lucas(at)computercenter(dot)it>
To: pgsql-hackers(at)postgresql(dot)org
Subject: lo_in: error in parsing
Date: 2003-02-04 17:31:21
Message-ID: Pine.LNX.4.21.0302041828250.10374-100000@sysweb.cctv
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I am using PostgreSQL 7.1, with the jdbc7.1-1.3.jar file. I am trying to
send a Large Object to the database but get an error saying 'lo_in: error
in parsing <dump of binary data is following>'. The offending statement is
'p.setBinaryStream(1, bis, size);' where bis is an instanceof
DataInputStream and p is a PreparedStatement. The exact same code runs
beautifully under Oracle, but throws this exception under PostgreSQL. I
have followed the documentation to the letter so I don't see why it throws
the exception. The field in the table is of type 'lo', which the
documentation uses.

Any tips ?

Regards.
--
Luca Saccarola
Key ID: 0x4A7A51F7 (c/o keyservers)

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2003-02-04 17:36:12 Re: POSIX regex performance bug in 7.3 Vs. 7.2
Previous Message Neil Conway 2003-02-04 17:15:06 Re: POSIX regex performance bug in 7.3 Vs. 7.2