Re: Display byte array back to pdf and display in IE
- From: Roedy Green <my_email_is_posted_on_my_website@xxxxxxxxxxxxxx>
- Date: Sat, 22 Oct 2005 00:02:59 GMT
On 21 Oct 2005 08:08:31 -0700, "SG" <sgho@xxxxxxx> wrote or quoted :
>This is the problem:
>PDF never gets displayed in browser (neither in IE, not Netscape etc.).
>
>My input argument is byte array. I want to display PDF in IE browser
>from that byte array from within doGet method of servlet.
In a thin client situation, the browser sends a request, then the
sever sends back the pdf file with a header.
The request contains a list of the sort of responses it is prepared to
hear.
In your case, where does the request come from? the browser sending
in an URL or an Applet? If an Applet, the browser knows nothing about
the request. The Applet has to deal with the response.
If in your case there is no Applet involved, I would tackle it this
way.
Get a packet sniffer. http://mindprod.com/jgloss/sniffer.html
Watch your browser download a PDF file not using your code, and watch
it using your code. Compare the packets and that may give you a clue.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.
.
- References:
- Prev by Date: Re: Java SOAP through HTTP firewall?
- Next by Date: Re: Overloading JNI methods
- Previous by thread: Re: Display byte array back to pdf and display in IE
- Next by thread: Reflection question: int ->Integer->??
- Index(es):
Relevant Pages
|