Stream rubyzip

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.

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 A. [email protected]

I’d be interested to know if you got anywhere with this?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs