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 is two-phase commit in the database?
How do you debug PL/SQL code?
If iam using JDBC API, do I also have to use ODBC?
What does it mean to "materialize" data?
What is an SQL Locator?
What is a jdbc driver and how many jdbc drivers are available?
How does JDBC API helps us in achieving loose coupling between Java Program and JDBC Drivers API?
What are the differences between setmaxrows(int) and setfetchsize(int)?
What are dml and ddl?
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>......
Explain about Join?
How to use JDBC API to call Stored Procedures?