SqlConnection con = ...
SqlCommand cmd = ...
byte[] buf = (byte[])cmd.ExecuteScaler("SELECT BinField FROM YourTable WHERE ...");
cmd.Close();
con.Close();
mTextArea.Text = BufToHex(buf);
string BufToHex(byte[] buf)
{
StringBuilder sb = new StringBuilder();
sb.Append("0x");
foreach (byte b in buf)
sb.Append(b.ToString("H2"));
// 格式字符串可能不对,自己查一下msdn
return sb.ToString();
}