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 setBlob() method fro preparedstatement Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "setBlob() method fro preparedstatement" Watch "setBlob() method fro preparedstatement" New topic
Author

setBlob() method fro preparedstatement

rakesh kadulkar
Ranch Hand

Joined: Jul 24, 2008
Posts: 115
Hi,
I am trying to insert a video into oracle database using setBlob() mwthod of the PreparedStatement interface.
My code is compiling sucesfully but i am getting a runtime error.

My code is:


The error is:
AbstractMethodError
oracle.jdbc.driver.OraclePreparedStatement .setBlob() at line 29

please help

Rakesh Kadulkar
Tim McGuire
Ranch Hand

Joined: Apr 30, 2003
Posts: 820

check out the docs for preparedStatement:
http://java.sun.com/javase/6/docs/api/java/sql/PreparedStatement.html

Use setBinaryStream instead of setBlob as the changes below :


 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: setBlob() method fro preparedstatement