469,927 Members | 1,877 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,927 developers. It's quick & easy.

How to retrieve temporary BLOB value from PLSQL to Java?

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(
" stuff... \n"+
" procThatModifiesBLOB(?);\n"+
plsqlblock.setBlob(1, bl);

bl = plsqlblock.getBlob(1); //**** doesn't work.

How do I retrieve the modified value of "bl" after "plsqlblock"
finishes executing?
Jul 19 '05 #1
0 3233

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Eugfene | last post: by
6 posts views Thread by gimme_this_gimme_that | last post: by
reply views Thread by sybrandb | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.