can i find original file size in compressed file?

Oct 4, 2011 at 8:32 AM

hi

Can I find the original file size in a compressed file? file was compressed using ZLibStream.

Coordinator
Oct 5, 2011 at 4:21 PM

No.  The ZLIB format does not include a way to provide any metadata for the thing that is compressed. You cannot know the filename (if any), the original uncompressed size of the thing that was compressed, the timestamp, or any of that kind of thing.

GZIP provides that.  ZIP provides that.  But ZLIB does not.

 

Oct 6, 2011 at 7:05 AM

Thanks.