Ejemplo n.º 1
0
 /// <summary>
 /// 解压缩Base64编码的结果到原字节数组
 /// </summary>
 /// <param name="source">Base64编码的结果</param>
 /// <returns>原字节数组</returns>
 public static byte[] DeCompressFromBase64(string source)
 {
     byte[] byteSource = Convert.FromBase64String(source);
     return(ZipCompress.DeCompress(byteSource));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 解压缩16进制字符串的结果到原字符串
 /// </summary>
 /// <param name="source">Base64编码的结果</param>
 /// <returns>原字符串</returns>
 public static string DeCompressStringFromHex(string source)
 {
     byte[] byteSource = source.HexStringToByteArray();
     return(ZipCompress.DeCompressStringFromArray(byteSource));
 }