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 |
which scenarios we go for jdbc,and which scenario we go for connection polling and wat r advantages and disadvantages using connection pooling.
What is a datasource in java?
What is the fastest type of JDBC driver?
What is difference between odbc and jdbc?
What is metadata in programming?
How many types of resultset are there in jdbc?
How can you use preparedstatement in jdbc?
What is the use of dialect?
How many types of JDBC drivers are there and what are they?
code to insert values/rows into oracle database from a java swing textfield when a button is pressed(using preparedstatements)
What is meant by dao?
how do we get the connection from connection pool