How to insert an image or raw data into database?



How to insert an image or raw data into database?..

Answer / Monitosh Sharma

To insert binary data like images, you can use a `Blob` or `Clob` object in JDBC. For example, you can create a Blob object, set the data using `setBinaryStream()`, and then execute an SQL update statement to insert the data into the database.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JDBC Interview Questions

What is JDBC API and when do we use it?

1 Answers  


Why is odbc needed?

1 Answers  


How do you determine the sensitivity of the ResultSet object?

1 Answers  


What does executeupdate return in jdbc?

1 Answers  


what is connection pooling?

6 Answers   Wipro,


What is jdbc drivers in java?

1 Answers  


How to find the column count in resultset?

1 Answers   Wipro,


Is jdbc a framework?

1 Answers  


How many types of resultset are there in jdbc?

1 Answers  


What is the use of getGeneratedKeys() method in Statement?

1 Answers  


Explain in detail about JDBC and its general features?

1 Answers  


What is jdbc architecture in java?

1 Answers  


Categories