You are here

Block length does not match with its complement

Problem: You are using System.IO.Compression.DeflateStream to decompress a stream, and you are getting this message.

Solution: Seek forward 2 bytes first. There is a two byte signature 0x789c at the beginning of the deflated file.

Tags: 

Add new comment

Simple Copyright Policy: If you want to reproduce anything on this site, get my permission first.