CSharp examples for System.IO.Compression:Zip
Decompress String to String
using System.Text; using System.IO.Compression; using System.IO;/*from w w w .j a v a 2s . co m*/ using System; public class Main{ public static string DecompressString(string str) { string compressString = ""; byte[] compressBeforeByte = Convert.FromBase64String(str); byte[] compressAfterByte = Decompress(compressBeforeByte); compressString = Encoding.GetEncoding("UTF-8").GetString(compressAfterByte); return compressString; } }