the output is always a 1kb file. How can I successfully write convert the byte returned by ComputeHash to a file.?
MD5CryptoServiceProvider test = new MD5CryptoServiceProvider();
using (FileStream fs = new FileStream(@"D:\test.pdf", FileMode.Open, FileAccess.Read))
{
byte[] buffer = test.ComputeHash(fs);
File.WriteAllBytes(@"D:\test3.pdf", buffer);
}