File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes Load Image in a database..Pls help me Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Load Image in a database..Pls help me" Watch "Load Image in a database..Pls help me" New topic

Load Image in a database..Pls help me

Raukutam Sandeep
Ranch Hand

Joined: Nov 15, 2000
Posts: 61

can anybody tell how to store images into the database(i'm using Access2000), using JDBC? I have list of gif files in a directory and i want to load each file as a record in the database.
Which methods I have to use?
Pls throw some light on this.
Jerry Pulley
Ranch Hand

Joined: Sep 19, 2000
Posts: 221
You're more likely to get an answer in the JDBC forum, so I'm moving this post there.
[This message has been edited by Jerry Pulley (edited December 30, 2000).]
paul sun

Joined: Dec 22, 2000
Posts: 28
It seems a Blob issue. Set the column for image Blob type, then use Statement method setBinaryStream() feeds each column with each image file via stream.
It is sorta covered in the JavaRanch Style Guide.
subject: Load Image in a database..Pls help me