How to send PDF FileStream directly as response???
Hi,
I got a little bit stuck. I have a little Java method that generates a PDF file by using the iText library. Now I want to configure Mule so that a CXF request (or any other suitable transport for inbound, e.g. axis) is used to request a PDF file which is generated on the fly (not stored somewhere locally on hard disk).
How can I stream the resulting pdf file directly to the requester (webbrowser)? I have a method that returns a FileOutputStream, is that enough to configure it to act as a PDF download webservice or what else do I need?
THX!