0

Environment: Linux / MySQL / PHP

Problem: While connected to a webservice, I am getting a response that is compressed with the SharpZipLib .NET library. As of yet, I have not been able to find a way to decompress these responses outside of a .NET environment.

Does anyone know a way to decompress this in a linux/php environment? Thanks!

Fostah
  • 2,947
  • 4
  • 56
  • 78

2 Answers2

1

Looking at their API documentation, I see the following compression algorithms that can be used from SharpZipLib which PHP can read: BZip2, Zip ('Deflated'), Zip.Compression, GZip, Tar, LZW. Some of these are even registered as stream filters, allowing you to chain them in nifty ways such as file_get_contents('compress.zlib://http://domain/resource') or file_get_contents('compress.bzip2://php://stdin').

TML
  • 12,813
  • 3
  • 38
  • 45
0

I ended up using another web service provided that provided a non-compressed response. However the information above was useful, just not for this specific problem.

Fostah
  • 2,947
  • 4
  • 56
  • 78