How to store images in database?

Answers were Sorted based on User's Feedback



How to store images in database?..

Answer / devarathnam c,kotagudibanda(po

Hi... By using "Blob" and "Clob" datatypes

Is This Answer Correct ?    8 Yes 2 No

How to store images in database?..

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

Post New Answer

More JDBC Interview Questions

What is two-phase commit in the database?

0 Answers  


How do you debug PL/SQL code?

1 Answers  


If iam using JDBC API, do I also have to use ODBC?

1 Answers  


What does it mean to "materialize" data?

0 Answers  


What is an SQL Locator?

0 Answers  






What is a jdbc driver and how many jdbc drivers are available?

0 Answers  


How does JDBC API helps us in achieving loose coupling between Java Program and JDBC Drivers API?

0 Answers  


What are the differences between setmaxrows(int) and setfetchsize(int)?

0 Answers  


What are dml and ddl?

0 Answers  


MY code is: public class P1{ public static void main(String ar[]) { class.forName("java.lang.String"); } } errors i got are :New.java:5: error: <identifier> expected class.forName("java.lang.String"); ^ New.java:5: error: invalid method declaration; return type required class.forName("java.lang.String"); ^ New.java:5: error: illegal start of type class.forName("java.lang.String"); ^ New.java:7: error: reached end of file while parsing } ^ 4 errors HELP ME>......

3 Answers  


Explain about Join?

0 Answers  


How to use JDBC API to call Stored Procedures?

0 Answers  


Categories