Is there a way to compress content from an strIO object? #569
Replies: 3 comments
-
Because 7zip is binary compression tool, string compression by You can write wrapper function to loop reading line or string from |
Beta Was this translation helpful? Give feedback.
-
Thank you for taking the time to respond. Would that work with any type of file? Sometimes I am holding excel files (.xlsx format) on strIO objects which I would like to compress (and email) without actually saving their contents on disk. |
Beta Was this translation helpful? Give feedback.
-
I don't know how to hold excel binary data into strIO object, so I don't know a answer. |
Beta Was this translation helpful? Give feedback.
-
I am creating a file held by an strIO object which I would then like to compress via py7zr alas it will only accept actual files and direcories and not strIO objects. Is there any chance you could add this feature?
Beta Was this translation helpful? Give feedback.
All reactions