How to download MemoryStream as a file in zip

Posted on

Using the SharpZipLib it’s possible to zip and unzip files. This can be a good solution when file size matters. Downloading files that are ziped can save many bandwidth. In this case a object is serialized to XML and put into a ZipOutputStream which belongs to SharpZipLib. public static byte[] RetreiveBytes(IEnumerable<int> Ids) { MemoryStream stream […]