jQuery in Action, 2nd edition*
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 Android Security Essentials Live Lessons this week in the Android 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 :


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: setBlob() method fro preparedstatement
 
Similar Threads
How to store a particular data into project file
ORA-01460: unimplemented or unreasonable conversion requested
how to upload pdf files to My sql with java
ORA-01461: can bind a LONG value only for insert into a LONG column
unimplemented or unreasonable request at ps.execute()