문제

I am using SvZlib for Silverlight 4 and try to inflate bytes array by using:

Cellbi.SvZLib.Utils.Decompress(bytesArray);

But I get error "incorrect header check". I am looking for disabling header check, but no results.

Any idea how to disable header check for decompressing (input array does not contain any header)

도움이 되었습니까?

해결책

What makes you think that disabling the header check will help? All you can do is tell zlib that it is raw deflate data that has no header. If that is not the case, then all that will do is result in a different error.

What are the first several bytes of the data? You are probably trying to decode gzip data using a zlib decoder, or zlib data using a gzip decoder.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top