Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTTPS Issue - not displaying pdf file properly

 
Thangaraj Selvamani
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Daniel,

These are my response header and content type.

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic