Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to store images in database?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

DB2 Universal claims to support JDBC 2.0, But I can only get JDBC 1.0 functionality. What can I do?

913


How do you insert images into database using jdbc?

1013


java based application for hospital management

3773


What are the standard isolation levels defined by JDBC?

1024


What types of DataSource objects are specified in the Optional Package?

950


Does sql allow null values ? Can we use it within where clause ?

932


What is execute in java?

914


What are the advantages of using preparedstatement over statement?

934


Why we use while rs next ())?

896


What do you understand by jdbc statements?

965


What is the return type of execute, executequery and executeupdate?

1060


What is ojdbc14 jar?

853


Is jdbc a middleware?

887


What are the classes and methods used for sending sql statements to database?

1004


What is an SQL Locator?

1030