// 把流转换为二进制数组
// 存放流的数组
byte[] source = new byte[result.Length];
// 读流到数组
result.Read(source, 0, (int)result.Length);
// 定义MD5 计算流的MD5值
System.Security.Cryptography.MD5 md5 = new System.Security.Cryptography.MD5CryptoServiceProvider();
// 计算出的MD5信息(二进抽)
byte[] target = md5.ComputeHash(source);
// 转换二进制为字符串
string strMD5 = BitConverter.ToString(target).Replace("-", “”);