struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paweł Wielgus <poulw...@gmail.com>
Subject Re: File Download with multiple files. Design question
Date Sun, 21 Nov 2010 19:54:29 GMT
Hi Roger,
below is Off-Topic as for struts.

> That's what I'm doing, but the StreamResult requires an InputStream
> which forces the intermediate step of creating a temporary file

I'm not so sure, i haven't done it myself, but there were a discussion
here some time ago
pointing out that one can create some kind of sophisticated
MySpecialBufferedStream
that will do exactly what You want.
In short this stream would need to have access to single files
but creates zip stream on-the-fly.
Google "creating zip stream on the fly"  - there are some nice results.

Best greetings,
Paweł Wielgus.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message