ZLIB decompressing only portion of data
mkx at excite.com
mkx at excite.com
Tue Feb 20 17:52:23 EST 2001
Of course, there is a better way to implement my test script (see
below), but I still get the same results. The input sample is 9,859
bytes long, where the string returned by the decompress method is only
546 bytes in length.
###
import os, zlib
fd=os.open('d:/temp/zlb/snippets.zlb', os.O_RDONLY | os.O_BINARY )
dco=zlib.decompressobj(15)
str=dco.decompress(os.read(fd,16384))
print len(str)
#print str
More information about the Python-list
mailing list