Do you mean a data stream? Since you mentioned a PDF I assume this to be the case... simply return a StreamResponse... you can use a page or eventlink, see: http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry/StreamResponse.html
For example: return new StreamResponse() { public String getContentType() { return "application/pdf"; } public InputStream getStream() { return stream; } public void prepareResponse(Response response) { response.setHeader("Content-Disposition", "attachment; filename=" + fileName); response.setContentLength(docLength); } }; cheers, Peter ----- Original Message ----- From: "tapestryphoto" <pho...@digiatlas.org> To: users@tapestry.apache.org Sent: Monday, 15 December, 2008 3:45:06 PM GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: [T5]: query regarding streaming data Hi, possibly not Tapestry specific and I'm not knowledgable enough on this subject, so apologies. I would like to be able to display a PDF that I obtain from a database using Hibernate via Tapestry. Is there a way to stream the data? thanks, p. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org