Hi, I have a gzip file and I am trying to read it via python as below:
import zlib
do = zlib.decompressobj(16+zlib.MAX_WBITS) fh = open('abc.gz', 'rb') cdata = fh.read() fh.close() data = do.decompress(cdata)
it throws : zlib.error: Error -3 while decompressing: incorrect header check
How can I overcome it.