Write to ZipFile backed by S3 stream #704
-
I have tried to merge two examples from the documentation together:
My use case is essentially to take hundreds of files from a S3 bucket and zip them all up. I am doing this in Lambda (not in VPC with EFS) and therefore I don't have unbounded space to just download all the files, zip them locally and upload the resulting ZIP file as there is every chance I will run out of space. Therefore I want to stream hundreds of files down and stream it back out to a single ZIP. The examples get tantalisingly close to my requirement. Any help appreciated.
But I get this: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
ZIP files are binary files, so don't you have to pass it a binary |
Beta Was this translation helpful? Give feedback.
ZIP files are binary files, so don't you have to pass it a binary
fout
handle? Notw
= text.