Answer the question
In order to leave comments, you need to log in
How to create a ZipFile containing multiple "files"/BytesIO without intermediately writing them to disk?
i.e. it is required:
bin1 = BytesIO
bin2 = BytesIO
zip = ZipFile( 'my.zip')
zip.__APPEND__( 'file1.bin', bin1)
zip.__APPEND__( 'file2.bin', bin2)
zip.close()
my.zip:
file1.bin
file2.bin
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question