posted 13 years ago
Welcome to JavaRanch.
The general approach would be to read the file into a byte[] (using the FileInputStream class), and then use that with the Blob and PreparedStatement classes for inserting it into the DB.
For retrieving it from the DB you'd call ResultSet.getBlob, and then use FileOutputStream to store it in a file.