阅读背景:

如何在DataTable中使用SqlBulkCopy和二进制数据(byte [])?

来源:互联网 

I'm trying to use SqlBulkCopy to import a bunch of data to our website. In most of the other areas we're using Entity model which uses byte arrays to represent binary data in SQL. However, SqlBulkCopy seems to be confusing byte[] with string. Everything seems to be working fine except for this one binary column which throws an exception: "The given value of type String from the data source cannot be converted to type binary of the specified target column."I'm trying to use SqlBulkCopy to import a bunch




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: