Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes JDBC and the fly likes Load Image in a database..Pls help me Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Databases » JDBC
Reply 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Load Image in a database..Pls help me
 
Similar Threads
ejbLoad() problem
On class.forname() in JDBC
On class.forname() in JDBC
Bad Performance for JDBC Insert
Load Image in a database..Pls help me