Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

inserting data in to blob...

 
Ganeshkumar cheekati
Ranch Hand
Posts: 362
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am using the below code to insert data in to blob object...


but getBinaryOutputStream method is deprecated which method i can use to get the same result?
 
Ireneusz Kordal
Ranch Hand
Posts: 423
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check documentation of your version of driver - Oracle® Database JDBC Developer's Guide ver. XXX
here is for version 11g release 2:
http://download.oracle.com/docs/cd/E11882_01/java.112/e10589/oralob.htm#g1070326

The getBytes, getBinaryStream, getString, getCharacterStream, and getAsciiStream methods of ResultSet and CallableStatement are extended to work with BLOB, CLOB, and BFILE columns or OUT parameters.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic