gzip and zlib use slightly different headers.
See How can I decompress a gzip stream with zlib?
Try d = zlib.decompressobj(16+zlib.MAX_WBITS)
.
And you might try changing your chunk size to a power of 2 (say CHUNKSIZE=1024
) for possible performance reasons.
More Related Contents:
- zlib.error: Error -3 while decompressing: incorrect header check
- Unzipping part of a .gz file using python
- TypeError: ‘str’ does not support the buffer interface
- Does python urllib2 automatically uncompress gzip data fetched from webpage?
- no module named zlib
- Python decompression relative performance?
- How to unzip gz file using Python
- Download and decompress gzipped file in memory?
- Installing Python-2.7 on Ubuntu 10.4
- Parsing compressed xml feed into ElementTree
- How do I gzip compress a string in Python?
- sqlite3.ProgrammingError: You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings
- Get uncompressed size of a .gz file in python
- Handling numbers in lists (Python) [duplicate]
- Proper way to declare custom exceptions in modern Python?
- How do I get the path of the current executed file in Python?
- While Loop Locks Application
- Python Requests – No connection adapters
- Meaning of inter_op_parallelism_threads and intra_op_parallelism_threads
- How to extract info within a #shadow-root (open) using Selenium Python?
- How can I make an Image with a transparent Backround in Pygame?
- Generate password in python
- Why is an MD5 hash created by Python different from one created using echo and md5sum in the shell?
- 5 maximum values in a python dictionary
- Ensuring subprocesses are dead on exiting Python program
- FastAPI is very slow in returning a large amount of JSON data
- Speeding (Bulk) Insert into MySQL with Python
- Disabling sorting mechanism in pprint output
- Pandas: Incrementally count occurrences in a column
- Plotly: How to set node positions in a Sankey Diagram?