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

Which is best database for java?

1038


What is a jdbc connection pool?

999


Explain the difference between inner and outer join ?

1104


Which jdbc driver is the fastest driver?

1059


What is the query used to display all tables names in SQL Server (Query analyzer)?

1114


What are drivers available?

1067


How MS-Access DB can be accessed over a network, using JDBC API?

2474


What are the basic exceptions in jdbc?

1169


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

1139


Is oracle client required for jdbc connection?

1023


How can we store the file in the oracle database?

984


How many types of JDBC Drivers are present and what are they?

1274


How do we load the drivers?

1066


What is jdbc odbc in java?

1172


Under what circumstances, that all four drivers are used?

2468