File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes How to pass BLOB to Oracle stored procedure Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "How to pass BLOB to Oracle stored procedure" Watch "How to pass BLOB to Oracle stored procedure" New topic
Author

How to pass BLOB to Oracle stored procedure

Misha Kezherashvili
Greenhorn

Joined: Jan 27, 2009
Posts: 2
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

Joined: Jan 27, 2009
Posts: 2
Found the answer.

Here is the working example:

 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: How to pass BLOB to Oracle stored procedure
 
Similar Threads
calling stored procedure
Webapp hang when calling stored procedure
Java Serializable on Servlets
getting the resultset of a stored procedure?
Servlet + Oracle9Ii help needed