如何直接通过sql字符串命令插入varbinary值?
不使用sql参数,纯文本命令,将byte[]转换为varbinary等效的字符串形式
如:[code=c#]
byte[] buffer;
string strImage = ByteToString(buffer);
string strSql = "insert into tb(Image) values(strImage)";
[/code]
ByteToString()方法如何处理?不要回答System.Text.Encoding.Default.GetString(buffer)