Meaningless Drivel is fun!*
The moose likes JDBC 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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Load Image in a database..Pls help me" Watch "Load Image in a database..Pls help me" New topic
Author

Load Image in a database..Pls help me

Raukutam Sandeep
Ranch Hand

Joined: Nov 15, 2000
Posts: 61
hi,

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.
regds,
Sandeep.
Jerry Pulley
Ranch Hand

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

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.
 
 
subject: Load Image in a database..Pls help me