This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.io.ioException

 
sri pathy
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I get the error java.io.ioException LOB locators cannot span transactions,
when I try to insert a BLOB object into oracle DB.
My SP reads
procname(filename1 in char, filedata out Blob)
insert into ...(filename1, empty_blob);
select filecontent from ... where filename=filename1 for update.

my java code reads
java.sql.BLOB b = (BLOB)getQueryOutParam("filedata").getBlob();

pls help..
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Welcome to JavaRanch!

I'm going to move this to our JDBC forum, where it will be more on-topic.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic