you can always cast it to byte[], then use a function like (didn't test):static string BytesToHex(byte[] byteArr)
{
System.Text.StringBuilder sb = new System.Text.StringBuilder();
sb.Append("0x"); for (int i=0; i < byteArr.Length; i++)
sb.AppendFormat("{0:X2}", byteArr[i]);
return sb.ToString();
}
or convert it yourself in the database, if you are using SQL Server, see
sp_hexadecimal
http://support.microsoft.com/default.aspx?scid=kb;en-us;246133
{
System.Text.StringBuilder sb = new System.Text.StringBuilder();
sb.Append("0x"); for (int i=0; i < byteArr.Length; i++)
sb.AppendFormat("{0:X2}", byteArr[i]);
return sb.ToString();
}
or convert it yourself in the database, if you are using SQL Server, see
sp_hexadecimal
http://support.microsoft.com/default.aspx?scid=kb;en-us;246133
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货