LOBs are handled differently than all the other data types.
Once you get a BLOB object reference it communicates directly
with Oracle, so you don't need the rs.updateRow() call.
- Gordon
I am trying to enter data (more than 50K) in a blob field
This is my code
con.setAutoCommit(false);
ResultSet rs=st.executeQuery("SELECT BDATA FROM BINARY_DATA WHERE DC_IDENTIFIER=2 for update");
rs.next();
BLOB blob=(BLOB)rs.getObject(1);
OutputStream os= blob.getBinaryOutputStream();
// Byte[] bts
os.write(bts,0,bts.length);
os.flush();
os.close();
rs.updateRow();
This is the error:
java.sql.SQLException: Invalid operation for read only resultset: updateRow
Any ideas on how to do this?
I have already failed to use setBinaryStream with such a large buffer.
Thank's in advance
Be well!
milko