How do I stream a file to the user from tapestry?
Answer / Hirdesh Kumar Bharti
To stream a file to the user in Tapestry, you can use an HttpStreamResponse. Here's a basic example:nn`Response response = new HttpStreamResponse(new FileInputStream(new File("path/to/yourfile")), "content-type-goes-here");`
| Is This Answer Correct ? | 0 Yes | 0 No |
How do we write components in apache tapestry?
Can I use the same component multiple times in one template?
What’s the lifecycle of a form submit?
How do I stream a file to the user from tapestry?
How is the performance of tapestry?
How do I integrate a tapestry application with j2ee declarative security/jaas?
Does tapestry use jsp tag libraries?
How does tapestry compare to other frameworks?
Is apache tapestry free/open source?
Does tapestry work with other other application servers besides jboss?
How to alter the url to point to the correct page?
How should do page navigation in apache tapestry?