Forum: Ruby on Rails Stream rubyzip

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
21c26386eabccd11f40c029b0ebf94e7?d=identicon&s=25 Brian Ablaza (zakifataya)
on 2007-05-30 00:24
I have a Rails app that needs to create a Zip archive of a folder and
send it to the client's browser for download. I have no need for the Zip
file on disk, so ideally, the Zip is created and streamed "on the fly".

Is this possible?

If not, I'll create a temp file and send that via xsendfile, but I'd
rather avoid the extra (unnecessary) step if I could.
90f14b38122e9c695a2ba8036f2da031?d=identicon&s=25 pearle (Guest)
on 2007-05-30 18:10
(Received via mailing list)
I have a similar situation. I've been looking at the rubyzip library
but it apparently does not support the compression of streams nor does
it do in memory zipping. It seems to only work directly with files.

On May 29, 6:24 pm, Brian Ablaza <>
Df6805f12a6120f840e218fd883958a6?d=identicon&s=25 Mark Dodwell (mkdynamic)
on 2009-09-20 14:12
I'd be interested to know if you got anywhere with this?
This topic is locked and can not be replied to.