wood burning stoves 2.0*
The moose likes Servlets and the fly likes HTTPS Issue - not displaying pdf file properly Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "HTTPS Issue - not displaying pdf file properly" Watch "HTTPS Issue - not displaying pdf file properly" New topic
Author

HTTPS Issue - not displaying pdf file properly

Thangaraj Selvamani
Ranch Hand

Joined: Sep 20, 2008
Posts: 61
Hi All,

Our Requirement:
1. Need to open the dynamic pdf file in web browser(IE7/IE8).
2. Protocol: HTTPS
3. Adobe reader 9.X

Work:
I am able to open pdf file in my we browser(IE7/IE8) and that to in HTTPS properly. But rarely my pdf get display grey color.
example: First time i click the button i can able to view the pdf in web browser.
secon time i click the button i can able to view the pdf in web browser.
.
.
nth time im not able to view the pdf. it display grey box.
nth+1 time im not able to view the pdf. it display grey box.
nth+2 time i can able to view the pdf in web browser.
why this happens.

i am Having pdf byte array(byte[]) this byte array should be flushed to the client.
i have set my

is any thing wrong in my response content type?


Thanks and regards
S.Thangaraj









Daniel Val
Ranch Hand

Joined: Jan 09, 2012
Posts: 44
Thangaraj Raj wrote:Hi All,

I am able to open pdf file in my we browser(IE7/IE8) and that to in HTTPS properly. But rarely my pdf get display grey color.



Hi,

It seems your pdf gets recognized - otherwise you would not see absolutely anything.

The grey issue is entirely from your client (browser) side, it does not have anything to do with the content type and the rest. If let's say the content type would be wrong, you would see something garbled at best or nothing...

D.
Thangaraj Selvamani
Ranch Hand

Joined: Sep 20, 2008
Posts: 61
Hi Daniel,

These are my response header and content type.

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: HTTPS Issue - not displaying pdf file properly
 
Similar Threads
Error while opening a pdf file in IE7
while opening csv file, dialog box opens twice
IE8 issue in GWT 2.0.3
Client side printing from Servlet
Displaying a file on the browser without the download box.