0

I want to decode a string that I have as

content-encoding: deflate

It is deflate only, it does not have any other compression algorithm.

header data

x?uO?
?0►??§!g§?↨¶?ho??6]?@6←??P??,?¶??????♂?=?♦??►?h☼????,?R☻$??◄???K?|J???n>;??!??c?*?♣6CM???`????#♂z?0???m?O4K?◄????-??z??}?S?M?♣?l?Q/????uo??dq

I have tried several decoding algorithms, with the gzip for example, but it gives me an error, something about the wrong header, also with the base64 ones and it says it is wrong. I have tried with several decoders but I don't get it.

These are the values it should have once decoded.

enter image description here

This stack was passed on to me, but it didn't help either Deflate string C#.

Please help.

Decode a "string content-encoding: deflate" to obtain the response value. In C#.

3
  • 2
    If your data is a string and has those question marks, data is irrevocably lost. Try again, but now from the source bytes. How did you obtain the data? Is this a response to an HTTP request you make from code? Commented May 19, 2023 at 20:01
  • Yes. is a HttpClient{BaseAddress = new Uri() Commented May 19, 2023 at 20:09
  • You men something like this? HttpClientHandler handler = new HttpClientHandler { AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate }; var client = new HttpClient(handler) { BaseAddress = new Uri(IONAPIBaseUrl) }; Commented May 19, 2023 at 20:30

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.