I have a Mysql database containing blobs and I need a user to be able to select which blobs they want to download (easy) and then have these put into a ZIP file before being downloaded.

Can anyone help with info on use of zip to do this?