How to insert an image into data base using JDBC? The JDBC BLOB data type available from which version of JDBC.

Showing Answers 1 - 1 of 1 Answers

rabbi

  • Jul 3rd, 2006
 

Why u thinking abt JDBC. If u can connect with any database then u can insert image into database.
If u r using Oracle as database then make a column with datatype BLOB.
Then Importing java.awt.image and java.io.reader u will conver ur image object into byte stream and pass it to the BLOB column.

Here u don't be worried abt JDBC, OCI, THIN, BRIDGE or any other connectivity...

I think ur main issue can be how can u convert image object into byte stream.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions