I have the first contiguous 2/3rds of a file that was compressed with zlib's deflate() function. The last 1/3 was lost in transmission. The original uncompressed file was 600KB.
Deflate was called multiple times by the transmitter while chopping the original file into chunk sizes of 2KB and passing Z_NO_FLUSH until the end of file when Z_FINISH was passed. The resulting complete compressed file was transmitted, but partially lost as described.
Is it possible to recover part of the original file? If so, any suggestions on how?
I'm using both the plain C implementation of ZLIB, and/or the Python 2.7 implementation of ZLIB.