I have searched about this matter a lot but, I didn\'t get a proper solution for my problem, I have following method for storing a file using java,
private v
Try this
File fBlob = new File ("<your_path>"); FileInputStream is = new FileInputStream(fBlob); statement.setBinaryStream(1, is, (int) fBlob.length()); statement.execute();
convert the file data into byte array and set in the sql statement