• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

setBlob() method fro preparedstatement

 
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 820
IntelliJ IDE VI Editor Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 :


 
reply
    Bookmark Topic Watch Topic
  • New Topic