It's not a secret anymore!*
The moose likes JDBC 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
JavaRanch » Java Forums » Databases » JDBC
Bookmark "inserting data in to blob..." Watch "inserting data in to blob..." New topic
Author

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:
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.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: inserting data in to blob...