hi
i am unable to see image after downloading.file is downloading..
i am doing this in
jsp.
help me my code is..
user=request.getParameter("user");
filename=request.getParameter("path");
response.setContentType("application/x-filler");
try
{
String downloadFile = "/usr/tomcat/webapps/ap123/users/"+user+"/"+filename;
response.setHeader("Content-Disposition","attachment;filename="+filename);
BufferedInputStream fif = new BufferedInputStream(new FileInputStream(downloadFile));
int data;
int i = 0;
while((data = fif.read()) != -1)
{
out.print((char)data);
// flushBuffer();
}
fif.close();
}
catch(Exception e) { e.printStackTrace(); }
thanks
pravi