sqlserver数据库中Image类型存储的内容如下(存储的不是图片):
0x94A946BE0B5AB3ECA80E7D4C584B54FD2DE3AA49B97F32E87DF67E2434B10C659207C0A711952215CD660BECB5EBA774DF28C6CA56B1DA7278C19B734590AAB6C17A0259D875AA9872DD31B09680A28AF01CC22FCB995AB2EB2AD54B7CE6FB48DBC754CA9F2925D49058F699CE57639F06CC2FFC5CA1AF049FFF612AAB9A6188890414C51A340E842CAF61D5A02A9840C8AA1EC9EB2D1C423378240018051303770C54BF076D7EF18231DF36DC557BC369D31BA1D6405F4E755959DC04183A81EB364025FECDD6BD9C326E88931AAC7F
我从数据库中先把数据读到byte[]里面,然后用System.Text.Encoding.Default.GetString方法转出来的字符串是乱码,请问要怎样读取才能读到正常的字符串?
试试别的Encoding.
Encoding.UTF8.GetString