Search code examples
zipbing-api

Bing API Report Unzip


I'm loading a CSV file from Bing Reporting API. The documentation says "The report file is compressed; therefore, you must unzip it to read the report.", so I save the raw file as shown in the example, but I can't get SharpZipLib, 7Zip, or WinRar to read the compressed data.

How can I decompress Bing API reports?


Solution

  • To answer my own question, I was able to get SharpZipLib to read the compressed data, but only after copying it to a seek-able memory stream first. This isn't the best solution for arbitrarily large files, but I'm reasonably confident our specific data won't get too large.