-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Closed
Description
It would be nice if uzlib module supported streamed decompression.
Usecase: Suppose I have a gzipped image file (PPM.GZ) stored on Flash/SD card. This file can be a few kilobytes big and I want to decompress its contents and dump into the LCD driver. Currently I cannot do this, because I have to decompress the whole file into main memory (using zlib.decompress
), which is bad, because this data are often bigger than the whole RAM.
Or am I missing something?
I guess ideally there could be a function that gets file object (I think read(size)
method could be enough) as a parameter and returns another file object.
Metadata
Metadata
Assignees
Labels
No labels