>>>操作数类型冲突: nvarchar 与 image 不兼容>>>row["Binary"] = buffer;what is the datatype of "Binary" column? buffer is a byte[] type, make the column image type in the database, also seeWriting BLOB Values to a Database http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconwritingblobvaluestodatabase.asp
>>>数据库中的Image对应System.Byte[]对不对?Console.WriteLine(row.Table.Columns("Binary").DataType.Name);yes, I would suggest you do a step-through debug to see which line/field is causing the error
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconwritingblobvaluestodatabase.asp
binary的类型不能用nvarchar的
详细的高手已经说了