Hi, If you are looking for integration of a binary source into Cocoon, you might be interested in doing it as follows:
- define a pseudo protocol in cocoon.xconf - write a SourceFactory that can take care of if. You could call your protocol pdf:// or perhaps something more generic, more related to the way you get access to you binary stream - use default reader to deliver the pdf to any browser, using the pseudo protocol. You might find it difficult to influence download behaviour, though. Search this list for more on that if you are interested. On the other hand, if you have a non-pdf source and are generating it to PDF and want to integrate that process more naturally into Cocoon, you could write a serializer, but that assumes the PDF is generated out of XML. Note that there are XSL-FO 2 PDF serializers available. Kind regards, Geert > Drs. G.P.H. Josten Consultant Daidalos BV Source of Innovation Hoekeindsehof 1-4 2665 JZ Bleiswijk Tel.: +31 (0) 10 850 1200 Fax: +31 (0) 10 850 1199 www.daidalos.nl KvK 27164984 De informatie - verzonden in of met dit emailbericht - is afkomstig van Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit bericht kunnen geen rechten worden ontleend. > Van: Renga, Subburaman [mailto:[EMAIL PROTECTED] > Verzonden: dinsdag 7 november 2006 7:30 > Aan: [EMAIL PROTECTED] > CC: [email protected] > Onderwerp: Regarding PDF file open in browser. > > Hi, > > > > I want to display a pdf on the browser. > > I have byte stream with me, using which I need to display the pdf > > directly on the browser. > > Currently, I am storing it in my local file system by creating a file > > output stream. But its taking a lot of time. > > I don't want to create any intermediate files. > > Is it possible to display the PDF directly on the browser? > > If anyone knows please let me know how this can be achieved in java? > > > > > > Thanks & Regards, > > Renganathan.S. > > P A T N I > > *: X: 2133, 34, M: 9833064984 > > *: [EMAIL PROTECTED] > > <http://www.patni.com/ <http://www.patni.com/> > > > ------------------------------------------- > > > > -------------------------------------------------------------- > -------------------------------------------------------------- > ---------------------------------- Disclaimer: This e-mail > message along with attachment, contain Patni GE Confidential, > proprietary & legally privileged information for the sole use > of the person or entity to whom this message was originally > addressed. Any review, e-transmission dissemination or other > use of or taking of any action in reliance upon this > information by persons or entities other than the intended > recipient is prohibited. If you have received this e-mail in > error kindly delete this e-mail from your records. If it > appears that this mail has been forwarded to you without > proper authority, please notify the sender and delete this > mail. This email (in whole or in part) is not to be > reproduced or furnished to third parties or made public > without the prior express written permission of the sender. > -------------------------------------------------------------- > -------------------------------------------------------------- > ---------------------------------- > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
