hi chris, instead of having the page return a StreamResponse you could a define a ComponentEventResultProcessor that will convert the result of a component event into a StreamResponse transparently
eg. Document onSubmit() { return new Document("path/file.pdf"); } registered service: Document.class,new ComponentEventResultProcessor<Document>() { ... public void processResultValue(final Document value) throws IOException { // create a streamresponse and return via the StreamResponseResultProcessor service } } hope this is somehow useful to you... after thinking twice you could also add a Dispatcher that returns your binaries directly.... g, kris Chris Lewis <[EMAIL PROTECTED]> 23.07.2008 13:02 Bitte antworten an "Tapestry users" <users@tapestry.apache.org> An Tapestry users <users@tapestry.apache.org> Kopie Thema T5: stream binary files Hello, I'm curious if there is a common way to stream binary files like images, PDFs, etc. I've read http://wiki.apache.org/tapestry/Tapestry5HowToStreamAnExistingBinaryFile and understand that method, but something just feels wrong about using a page for this kind of operation (after all, it's not a page). Has anyone take a non-page approach to this? Thanks for any input. chris -- http://thegodcode.net --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]