예제 #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));
 }
예제 #2
0
 /// <summary>
 /// 解压缩16进制字符串的结果到原字节数组
 /// </summary>
 /// <param name="source">16进制字符串的结果</param>
 /// <returns>原字节数组</returns>
 public static byte[] DeCompressFromHex(string source)
 {
     byte[] byteSource = source.HexStringToByteArray();
     return(ZipCompress.DeCompress(byteSource));
 }