Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

setBlob() method fro preparedstatement

 
rakesh kadulkar
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Tim McGuire
Ranch Hand
Posts: 820
IntelliJ IDE Tomcat Server VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 :


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic