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 |
What is JDBC API and when do we use it?
Why is odbc needed?
How do you determine the sensitivity of the ResultSet object?
What does executeupdate return in jdbc?
what is connection pooling?
What is jdbc drivers in java?
How to find the column count in resultset?
Is jdbc a framework?
How many types of resultset are there in jdbc?
What is the use of getGeneratedKeys() method in Statement?
Explain in detail about JDBC and its general features?
What is jdbc architecture in java?