ServletOutputStream & browser download problem
Hi, i have tried to download an image from my browser, this is the code in my servlet. I think this code would send a byte stram to my browser.
response.setContentType("image/jpg");
response.setDateHeader("Expires", 0);
response.setHeader("Cache-Control","no-cache");
byte[] content ....// my jpg image
ServletOutputStream sos = response.getOutputStream();
sos.write(content);
sos.flush();
sos.close();
i've this problem, all the images that i try to donwload have the same size and they have not a jpg extension. Any advise?
thnx

