force download problem in HTTPS

F

f.dearcangelis

Hi Folks,

I have some problem when i attempt to download a file from my https web
application.

After browser request open or save the error is :

"resource not found or not available"

The code is:

byte [] data = this.DOCUMENTO.getBytes(1,len);


ServletOutputStream sos = response.getOutputStream();

response.setContentType("application/octet-stream");
response.setContentLength(data.length);
response.setHeader("Content-Disposition", "attachment;
filename=" + this.NOMEFILE);

sos.write(data);
sos.flush();
sos.close();

thanks for all
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,046
Latest member
Gavizuho

Latest Threads

Top