How to retrieve temporary BLOB value from PLSQL to Java?
From: Corrine <JavaDeveloper_at_volcanomail.com>
Date: 3 Oct 2003 14:32:55 -0700
Message-ID: <54774824.0310031332.64e41f7b_at_posting.google.com>
Date: 3 Oct 2003 14:32:55 -0700
Message-ID: <54774824.0310031332.64e41f7b_at_posting.google.com>
I am trying to pass a temporary BLOB that I've created in Java, to a PLSQL function that modifies it, and then to retrieve this modified value back to Java, all using JDBC.
I can't figure out how to get the modified BLOB object back to Java after the PLSQL block has finished executing.
I do:
BLOB bl = BLOB.createTemporary(db,true,BLOB.DURATION_SESSION); CallableStatement plsqlblock = conn.prepareCall(
"declare\n"+
" stuff... \n"+
"begin\n"+
" procThatModifiesBLOB(?);\n"+
"end;\n");
plsqlblock.setBlob(1, bl);
plsqlblock.execute();
bl = plsqlblock.getBlob(1); //**** doesn't work.
How do I retrieve the modified value of "bl" after "plsqlblock" finishes executing? Received on Fri Oct 03 2003 - 23:32:55 CEST