• Post Reply Bookmark Topic Watch Topic
  • New Topic

PDF Stream HTTP Vs HTTPS

 
rambabu ravuri
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everybody,

I use following code to generate PDF dynamically from a servlet.

This works both on IE and Mozilla over HTTP.

But over HTTPS layer it works on Mozilla but not on
IE.

Any suggestions would be great....
---------------------------------------------------
response.setContentType("application/pdf");

ByteArrayOutputStream byteOS = new ByteArrayOutputStream();

//****Code to write PDF bytes to byteOS

byteOS.flush();

//Print reoports to Browser
OutputStream out = response.getOutputStream();
out.write(byteOS.toByteArray());
----------------------------------------------------------


Thanks,
Ram
[ December 07, 2005: Message edited by: rambabu ravuri ]
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And what exactly does "it doesn't work" mean?
 
rambabu ravuri
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It gives a pop-up box saying

""Downloading from localhost blah blah"

And immeadiately shows another pop-up saying

"The file could not be written to the cache"

and after clicking OK, Just displays a blank page...

Thanks,
ram
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!