How can I generate zip file without saving to the disk with Ruby?

Posted by flutedemetan on Stack Overflow See other posts from Stack Overflow or by flutedemetan
Published on 2010-03-09T00:49:56Z Indexed on 2010/03/09 0:51 UTC
Read the original article Hit count: 303

Filed under:
|

I have generated many pdf files in memory and I want to compress them into one zip file before sending it as a email attachment. I have looked at Rubyzip and it does not allows me to create a zip file without saving it to disk (maybe I am wrong).

Is there any way I can compress those file without creating a temp file ?

© Stack Overflow or respective owner

Related posts about ruby

Related posts about zip