Why My DeCompression is showing an Error?

You already asked this question, and I already answered it here. Zero is an expected byte in your coding scheme, and must not be rejected. Simply delete the if (c <= 0) section.

Leave a Comment