File file = new File("C:\\Users\\admin\\Desktop\\server\\flower1.jpg");
FileInputStream fs = new FileInputStream(file);
PreparedStatement ps = conn.prepareStatement("insert into picprop(picname,picsize,pictype,image) values(?,?,?,?)");
ps.setString(1,"yellow");
ps.setInt(2,89);
ps.setString(3,"jpeg");
ps.setBinaryStream(4,(InputStream)fs,(int)(file.length()));
int i=ps.executeUpdate();;
pw.println("value of i is:"+i);

The statement[ps.setBinaryStream(4,(InputStream)fs,(int)(file.length()));] is not getting executed. what night be the reason?