Read and write zip directly using zlib.