servlets - java.io.FileNotFoundException? -


I have written the code of jsp, servlet to upload a doc file to the database.

Here is my code, but I am getting this type of error == java.io.FileNotFoundException: resume (resume) value (?) (File name, directory name, or Put the Volume Label syntax incorrect). This error ???

  Try {class.forName ("net.sourceforge.jtds.jdbc.Driver"). NewInstance (); Con = DriverManager.getConnection ("jdbc: jtds: sqlserver: // w2k8server: 1433 / career", "sa", "alpha # 123"); Pst = con.prepareStatement ("Select data from 1 to *, where email = and password =?"); Pst = con.prepareStatement ("Resume (Resume)" + "Enter" values ​​(?) "); File again = new file ("+ + + pst"); Fis = new FileInputStream (again); Pst.setBinaryStream (3, InputStream) fis, (int) (re.length ())); Pst.setString (1, Upload); // rs = pst.executeQuery (); While (rsnext ()) CNT ++; Int s = pst.executeUpdate (); If (S & G; 0) {System.out.println ("Successfully uploaded!"); } Else {System.out.println ("Unsolved for uploading image."); } Rs.close (); Pst.close (); Con.close (); }    

This is because resume (resume) value Insert (?) Maybe you do not have a file name on your disk.

  pst = con.prepareStatement ("start over again (start over again)" + "values ​​(?)"); File again = new file ("+ + + pst");   

You are creating file with "+ + pst , which is the result of toString () Calling a created place Did you put " to get rid of the informative compilation error?

You probably have some actual file names in some other variables.

  file again = new file (theRealFileNameVariable);    

Comments