You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Cédric Durmont <cd...@gmail.com> on 2011/04/20 17:49:35 UTC
Question about tr:fileDownloadActionListener
Hello,
I've been using tr:fileDownloadActionListener for quite some time now,
but I have to rework my code to handle large files (that is,
1000s-page long PDF generated on the fly with jasperreports)
I made jasperreports send the output directly to the outputstream
provided in the listener, but the browser doesn't get the file until
it is completely generated.
When tracing the code I can see that the OutputStream provided is a
BufferedOutputStream, with a 8Kib buffer. The final file I'm
generating right now is 10x larger, so it can't be stuck in the
buffer...
Any idea on what's happening ? Is there something special to do in a
fileDownloadActionListener to have it sending data progressively to
the browser ?
Regards,
Cedric Durmont