This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
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 Head First Android this week in the Android 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
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.
 
Don't get me started about those stupid light bulbs.
 
subject: Load Image in a database..Pls help me
 
It's not a secret anymore!