Re: Display byte array back to pdf and display in IE



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.
.



Relevant Pages

  • Re: Using BinaryWrite to output PDF to IE
    ... Adobe Reader is installed on all the machines accessing the ... user clicks a link and the PDF is loaded into a new browser window. ... Dim PDFfileSize As Long ...
    (microsoft.public.dotnet.framework.aspnet)
  • Response.BinaryWrite or something causes multiple posts
    ... queries a database and builds a pdf file using a third party control ... and through an html anchor with a target of "_blank". ... the first request, I assume, works fine. ... the browser issues ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: EU nations refuse to force members to farm GM maize
    ... the Spiegel logo is on the Business Week page. ... Since there are security flaws in PDF files, allowing them to be opened to ... they don't display consistently across browsers. ... doesn't have a plug-in to show the PDFs in the browser but that's just ...
    (misc.rural)
  • Re: AN: GuruGram #46 ...
    ... You can't shut the main window while a pdf is ... >>leave it running in the browser. ... > But it gives errors when Acrobat reader exits about half the time ... Visual Studio 6.0 Enterprise - another gazillion files, Explorer, ...
    (sci.electronics.design)
  • Re: Win XP SP2 problems
    ... The settings to solve this is issue is in the Acrobat Reader. ... Browser Options" Check the box "Display PDF in Browser'. ... > the information bar even when I follow the official ...
    (microsoft.public.windowsxp.security_admin)