How to store images in database?
Answers were Sorted based on User's Feedback
Answer / devarathnam c,kotagudibanda(po
Hi... By using "Blob" and "Clob" datatypes
| Is This Answer Correct ? | 8 Yes | 2 No |
Answer / mani kant
The setBinaryStream() method of PreparedStatement is used to store binary information.
For storing image into the database, BLOB (Binary Large Object) datatype is used in the table. For example:
CREATE TABLE "IMGTABLE"
( "NAME" VARCHAR2(4000),
"PHOTO" BLOB
)
/
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the differences between execute, executequery, and executeupdate?
How many isolation levels are supported in JDBC and what are they?
What are the main steps in java to make JDBC connectivity?
How to find that, a row is updated or not?
Explain different types of locks in jdbc?
Does sql allow null values ? Can we use it within where clause ?
Where is jdbc url mysql?
How do I know which jdbc driver to use?
I have written a program to connect to database using odbc.Can this Application run on any Platform????
How many types of JDBC Drivers are present and what are they?
How to retrieve warnings in jdbc?
Does jdbctemplate use prepared statements?