compressing and decompressing source data gives result different than source data
问题 In my app I need to Decompress data written by DataContractSerializer to compression Deflate Stream in another app, edit the decompressed data and Compress it again. Decompression works fine, but not for data compressed by me. The problem is that when I do this: byte[] result = Compressor.Compress(Compressor.Decompress(sourceData)); the length of the result byte array is different than sourceData array. For example: string source = "test value"; byte[] oryg = Encoding.Default.GetBytes(source)