The moose likes JDBC and Relational Databases and the fly likes inserting data in to blob... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "inserting data in to blob..." Watch "inserting data in to blob..." New topic

inserting data in to blob...

Ganeshkumar cheekati
Ranch Hand

Joined: Oct 13, 2008
Posts: 362
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?

SCJP5 and SCWCD1.5
Think Twice Act Wise...
Ireneusz Kordal
Ranch Hand

Joined: Jun 21, 2008
Posts: 423
Check documentation of your version of driver - Oracle® Database JDBC Developer's Guide ver. XXX
here is for version 11g release 2:

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.

I agree. Here's the link:
subject: inserting data in to blob...
jQuery in Action, 3rd edition