programsam / binkjs

Music archival site BINK, rewritten as a Node.js express app
0 stars 1 forks source link

Download collection/jam as ZIP #20

Open programsam opened 6 years ago

programsam commented 6 years ago

Current BINK has the ability to download an entire jam as a zip file. Do this and also add ability to tar gz the collection. Quite useful for loading up flash drives or CDs w media.

programsam commented 6 years ago

https://www.npmjs.com/package/archiver

Allows you to zip things — I think even zip remote files.

Then use Express Streams to stream the resultant zip to the response. Try doing this in a fresh web app to avoid BINK-confusion.

https://medium.com/@richard534/uploading-streaming-audio-using-nodejs-express-mongodb-gridfs-b031a0bcb20f

Is a very useful post — also look into that for possibly streaming the audio through the BINK web app up to S3 — if that’s what we decide to do.

programsam commented 1 month ago

Forget that. Do this: https://www.npmjs.com/package/s3-zip