http://expert.csdn.net/Expert/topic/2097/2097864.xml?temp=.2918817

解决方案 »

  1.   

    >>>操作数类型冲突: 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
      

  2.   

    试试byte[] buffer = ms.GetBuffer();
      

  3.   

    操作数类型冲突: nvarchar 与 image 不兼容不是很清楚吗
    binary的类型不能用nvarchar的
    详细的高手已经说了
      

  4.   

    数据库里字段的类型是Image的。row["Binary"]中的Binary是一个字段名,存放类的序列化用的,Sql SERVER中的数据类型是Image这里row["Binary"]所属的表是中间层根据XML文件构造的,这一列对应的类型是System.Byte[]数据库中的Image对应System.Byte[]对不对?
      

  5.   

    >>>数据库中的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