Questions tagged [deflatestream]

Microsoft .NET built-in support for standards-compliant Deflate algorithm (compress and decompress).

DeflateStream is a Microsoft .NET Class that provides standards-compliant support for the "DEFLATE" compression algorithm.

78 questions
0
votes
0 answers

c# deflatestream returning lots of null characters

I am trying to use DeflateStream to inflate data from a web server. for some reason though, the byte array my function returns contains several null characters instead of whatever they are supposed to be. eg(space represents a null char) ge …
jhbh
  • 317
  • 4
  • 11
0
votes
1 answer

DeflateStream compress/decompress inconsitency

I have the following data from a photoshop file that uses zip-compression (RFC1951): 250, 255, 159, 1, 47, 248, 63, 42, 63, 172, 229, 1, 2, 12, 0, 209, 255, 31, 225 Which decompresses to the following, x16: 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,…
George R
  • 3,784
  • 3
  • 34
  • 38
-1
votes
1 answer

Read string from CryptoStream correctly?

I try write and read back string from file. Use this code for the write: ... Aes aes = Aes.Create(); aes.KeySize = 256; aes.BlockSize = 128; aes.Mode = CipherMode.CBC; aes.Padding =…
Malcolm
  • 33
  • 1
  • 7
1 2 3 4 5
6