This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Load Image in a database..Pls help me
 
Similar Threads
Bad Performance for JDBC Insert
ejbLoad() problem
On class.forname() in JDBC
On class.forname() in JDBC
Load Image in a database..Pls help me