/// <summary> /// 解壓縮 /// </summary> /// <param name="compressJson"></param> /// <returns></returns> private string DecompressJsonVal(byte[] compressJson) { byte[] decompress = LibCompress.Decompress(compressJson); string str = LibCompress.ConvertBytesToString(decompress); return(LibCompress.GZipDecompressString(str)); }
/// <summary> /// 壓縮 /// </summary> /// <param name="json"></param> /// <returns></returns> private byte[] CompressJsonVal(string json) { string compressString = LibCompress.GZipCompressString(json); byte[] bytes = LibCompress.ConvertStringToBytes(compressString); return(LibCompress.Compress(bytes)); }