zipstream

Adding files into existing zipped archive with NodeJs zip-stream or archiver module

删除回忆录丶 提交于 2021-02-19 05:07:07
问题 I have this scenario: I have a zip file for users to download but for each download, I want to include a 'readme' file with user specific content ( e.g. with user's name and download time ). I used archiver (zip-stream) module to zip and stream zipped content to the browser. The goal is to minimise CPU usage (i.e. zipping) and storage ( i.e. creating copy of the same zip). Here are some of the possible ways to achieve this with cons. Upon every download, make a copy of the original zip, and

Adding files into existing zipped archive with NodeJs zip-stream or archiver module

时光毁灭记忆、已成空白 提交于 2021-02-19 05:06:23
问题 I have this scenario: I have a zip file for users to download but for each download, I want to include a 'readme' file with user specific content ( e.g. with user's name and download time ). I used archiver (zip-stream) module to zip and stream zipped content to the browser. The goal is to minimise CPU usage (i.e. zipping) and storage ( i.e. creating copy of the same zip). Here are some of the possible ways to achieve this with cons. Upon every download, make a copy of the original zip, and

unexpected behavior using zip-stream NPM on Google k8s

允我心安 提交于 2021-02-04 08:33:30
问题 I am working on creating a zip of multiple files on the server and stream it to the client while creating. Initially, I was using ArchiverJs It was working fine if I was appending buffer to it but it fails when I need to add streams into it. Then after having some discussion on Github, I switched to Node zip-stream which started working fine thanks to jntesteves . But as I deploy the code on GKE k8s I Started getting Network Failed errors for huge files. Here is my sample code : const

Using ZipStream in Symfony: streamed zip download will not decompress using Archive Utility on Mac OSX

℡╲_俬逩灬. 提交于 2019-11-29 16:33:52
I have a symfony 2.8 application and on the user clicking "download" button, I use the keys of several large (images, video) files on s3 to stream this to the browser as a zip file using ZipStream ( https://github.com/maennchen/ZipStream-PHP ). The streaming of files and download as a zip (stored, not compressed) is successful in the browser & the zip lands in Downloads. However, when attempting to open the zip in Mac OSX El Capitan using Archive Utility (native archive software on OSX), it errors out. The Error: Unable to expand "test.zip" into "Downloads". (Error 2 - No such file or