How can i use java code to insert image into Database(example MS Access)?
Printable View
How can i use java code to insert image into Database(example MS Access)?
Not sure. Maybe you could store the location of the image rather than anything else. That could cut out a lot of work.
Sometimes we should store the real image in the database in case that someone delete the original file.
You could create a byte stream, or maybe just use an outputstream to write the image to db.
Is there any example?
I'll take a wild guess
but I think your example is there in the DB development forum
it's the same for java, with a few small changes