wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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.

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: inserting data in to blob...
 
Similar Threads
Using Apache Commons Codec
Saving Japanese Characters in Oracle Blob using Java program
how to pass multiple BLOB objects to a PLSQL procedure?
Please help me complete steps to upload an image
file transfer over TCP problem