M
Michael
All,
I am working on a web application and have hit a sticking point. The
user clicks on a link and the app returns a PDF. The site is accessed
via https. However, when I return the PDF, I am getting a message
saying the page I am about to view contains both secure and unsecure
items. Would I like to display the unsecure items? Everything I am
returning is via https, so I'm not sure what I'm doing wrong. The
code I am using to return the PDF is as follows:
response.reset();
response.setContentType("application/pdf");
response.setHeader("Content-Disposition", "inline;");
response.setContentLength(pdf.length);
OutputStream out = response.getOutputStream();
out.write(pdf);
out.flush();
out.close();
pdf is a byte array containing the PDF. Any help anyone can provide
would be appreciated.
Thanks,
Mike
I am working on a web application and have hit a sticking point. The
user clicks on a link and the app returns a PDF. The site is accessed
via https. However, when I return the PDF, I am getting a message
saying the page I am about to view contains both secure and unsecure
items. Would I like to display the unsecure items? Everything I am
returning is via https, so I'm not sure what I'm doing wrong. The
code I am using to return the PDF is as follows:
response.reset();
response.setContentType("application/pdf");
response.setHeader("Content-Disposition", "inline;");
response.setContentLength(pdf.length);
OutputStream out = response.getOutputStream();
out.write(pdf);
out.flush();
out.close();
pdf is a byte array containing the PDF. Any help anyone can provide
would be appreciated.
Thanks,
Mike