"Dejan Vucinic" <hotdejan(at)hotmail(dot)com> writes:
> I'm trying to create a BLOB with the 7.1.2 JDBC driver and both
> setBytes() and setBinaryStream() fail with this message:
> FastPath call returned ERROR: lo_write: invalid large obj descriptor (0)
Probably you are not wrapping the operation into a transaction
(BEGIN/COMMIT). Large object descriptors are only good to the end of
the current transaction.
regards, tom lane