Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to pass BLOB to Oracle stored procedure  RSS feed

 
Misha Kezherashvili
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am trying to store file into database using oracle stored procedure. I am using Struts.
here is the code.



and here is the stored procedure



The record is inserted but the blob field is empty. Where did i go wrong?
 
Misha Kezherashvili
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Found the answer.

Here is the working example:

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!