What you do is printing CHARACTER data!! Try this:
<code>
OutputStream os = response.getOutputStream();
os.write(<binary-data/>);
os.close();
</code>

Cheers
        Christian

-----Ursprüngliche Nachricht-----
Von: Rajagopal. V [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 15. Oktober 2001 20:49
An: [EMAIL PROTECTED]
Betreff: Re: Embedding fop in IE..Help!!!


Hi
Im using a JSP to generate this PDF. I am able to open
other "Static" pdfs.
This is what i do, i create a bytearrayoutputstream
which will hold the output of the render and then use
a 

pageContext.getOut().print(<bytearrayoutputstreamobject>);

and this results in printing binary content on the
screen.. I assume this is bcoz IE doesnt recognize the
content type and print jst prints it on the screen,
whereas Netscape understands the Content Type and
displays it as a PDF.
I tried to create a servlet which will generate the
PDF(using streams to generate the output) and it works
in IE and Netscape.

Now, is it not possible to render a PDF using
JSP(especially on IE)?? IS there a way?

Thanks
Raj

--- Amit <[EMAIL PROTECTED]> wrote:
> Can you open other pdf files (via a link in a html
> page) in IE?
> 
> 
> "Rajagopal. V" wrote:
> 
> > Hi All
> > I have an XML file which i combine with a XSL to
> > generate the FO file and render it. It works fine
> with
> > Netscape but im having a tough time with IE. It is
> > displaying garbage on teh screen. All i get is
> binary
> > characters for the PDF File. I have IE 5.5 Sp1.
> and i
> > tried all the workarounds. These are the ones I
> tried
> > 1) Changed the name of the file to be .pdf so that
> IE
> > will look at the extension and treat it as PDF
> >
> > 2) Bloated the file size to be more than 8k so
> that
> > there is no buffer problem with IE
> >
> > 3) Downloaded the Fo file generated and ran the fo
> > command line and it generates the PDF properly(as
> an
> > application). So there is nothing wrong with the
> FO.
> >
> > IS there any other way to get a PDF on IE? Im not
> sure
> > why im getting binary content all over the screen?
> >
> > Please HElpppppp...
> >
> > TIA
> > Raj
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Make a great connection at Yahoo! Personals.
> > http://personals.yahoo.com
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, email:
> [EMAIL PROTECTED]
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, email:
> [EMAIL PROTECTED]
> 


__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to