I have written image downloading code in servlet and it is working fine.But If I write the same code in jsp it is not working ...
Could any one let me know the reason ?
Code In Servlet's Do Get method...
out = response.getOutputStream();
String uploadDir = "C:\\Users\\ufindanil\\Documents\\NetBeansProjects\\HibWeb/web/uploadedphotos/Parents/DadPose.jpg";
FileInputStream fin = new FileInputStream(uploadDir);
BufferedInputStream bin = new BufferedInputStream(fin);
BufferedOutputStream bout = new BufferedOutputStream(out);
int ch =0; ;