String filename=request.getParameter("uploadfile");
PreparedStatement ps = con.prepareStatement("insert into loader values('" +filename+ "')");
//File fileIn = new File("C:\\diso_temp\\" + filename);
File fileIn = new File(new File("/").getAbsolutePath()+File.separator+"tomcat"+File.separator+"webapps"+File.separator+"ROOT"+File.separator+"image"+File.separator+"filename");
int fileLength = (int) fileIn.length();
InputStream streamedFile = new FileInputStream(fileIn);
ps.setBinaryStream(1, streamedFile, fileLength);
ps.executeUpdate();
ps.close();
streamedFile.close();
con.close();
i am using this coding not store file in database please help me very urgent
this my mail id
rameeshmsc@gmail.com
send it