That makes a lot more sense now.

Actually, I am working with server apps too, but my prototyping has been 
client side which probably made my postings less than clear.

The bottom line is that the file gets created regardless.

What I was unclear about was if the baos could be somehow tied into the 
browser directly avoiding the need to create a real file. It seems clear the 
answer is no to that.

Thanks for your terrific clarification!!!

Best,



>From: Michael Schierl <[EMAIL PROTECTED]>
>Reply-To: Post all your questions about iText here 
><[EMAIL PROTECTED]>
>To: Post all your questions about iText here 
><[EMAIL PROTECTED]>
>Subject: Re: [iText-questions] Reading a PDF via a ByteArrayOutputStream?
>Date: Fri, 13 Apr 2007 20:06:23 +0200
>
>Mork Afur schrieb:
> > So I guess I don't see the difference between just creating the PDF file 
>in
> > the first place on the client machine vs. returning a baos that 
>"magically"
> > creates a PDF file in the Temp folder.
>
>Iliadis talks about server applications. You seem to talk about client
>applications.
>
>On the server there is a webserver that uses iText, creates a PDF and
>stores it into a baos. This baos is then transferred to the client and
>stored on disk there. If Iliadis used a FileOutputStream, the file would
>be written to the disk of the server, then transferred to the client,
>and then stored on the disk of the client again (and deleted from the
>disk of the server after that).
>
>If only one machine is involved and the PDF has to be viewed (and not
>only zipped or written to a database, for example), using a baos for the
>final PDF document does not make sense.
>
>Michael
>
>-------------------------------------------------------------------------
>Take Surveys. Earn Cash. Influence the Future of IT
>Join SourceForge.net's Techsay panel and you'll get the chance to share 
>your
>opinions on IT & business topics through brief surveys-and earn cash
>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>_______________________________________________
>iText-questions mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/itext-questions
>Buy the iText book: http://itext.ugent.be/itext-in-action/

_________________________________________________________________
Interest Rates Fall Again! $430,000 Mortgage for $1,399/mo - Calculate new 
payment 
http://www.lowermybills.com/lre/index.jsp?sourceid=lmb-9632-18679&moid=7581


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to