Creating Zip files from Attachments without detach

Hello,I would like to create a zip file from the attachments of multiple documents using java.util.zip. BUT without detaching them to the harddisk. Is this possible ?

Pls help

Martin