
hi my first page.........
then addimage.jsp
<%@ page import="java.io.,java.sql." %>
pst.setString(1,name);
pst.setString(2,fname);
pst.setString(3,uage);
pst.setString(4,uqal);
pst.setString(5,ugen);
pst.setString(6,upno);
pst.executeUpdate();
pst.close();
PreparedStatement ps = con.prepareStatement("insert into dlogin values(?,?,?)");
File file = new File(url);
FileInputStream fs = new FileInputStream(file);
ps.setString(1,usname);
ps.setString(2,pass);
ps.setBinaryStream(3,fs,fs.available());
ps.executeUpdate();
out.println("thank u for registration");
out.println("ur values are inserted into database");
}
catch(Exception e)
{
System.out.println(e);
}
%>
when i compiled it i got error
java.io.filenotfoundexception.......
please go through it and help me....
thanks in advance
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.