Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

how does winzip work?

Aug 5, 2004 12:53PM PDT

I'm fairly new to programing and such but this has puzzeld me for quite a while. How does winzip compress files? I'd be very thankfull for some help.

Discussion is locked

- Collapse -
Re: how does winzip work?
Aug 5, 2004 1:29PM PDT

I do not know the exact method, and there are multiple methods used anyway, but essentially the compressing tool will look for patterns of repeatable characters or sequence of bytes in a file. Once found it will compute a smaller coded sequence that represents that repeating of bytes and substitute that in its stead.

Because the result will typically have a jumble, and smaller set of bytes with no repeating byte pattern the end result will not compress much more. That is why you can't compress an already compressed file, using some other compressing tool to get further reduced results.

The un-compressing does the opposite. It looks for those special coded bytes and replaces with the original byte pattern.

- Collapse -
Re: how does winzip work?
Aug 6, 2004 12:16AM PDT