how to save byte[] value to varbinary(64) field on database
- by shamim
byte[] a = HashEncript("a");
public byte[] HashEncript(string Password)
{
SHA512Managed sha = new SHA512Managed();
byte[] hash = sha.ComputeHash(UnicodeEncoding.Unicode.GetBytes(Password));
return hash;
}
i want to save byte[] a this value on my database .My database field is varbinary(64).i use msSQL2008 .how to save ,want to know the insert query with C# code.