不能。
bitmap以BLOB形式存储。
在.Net中,必须先存储一条此字段为空的记录,然后再利用Parameter对象Update这条记录为BlOB字段赋值。

解决方案 »

  1.   

    定义DataSet的时候怎么把字段定义为BLOB类型的
      

  2.   

    把字段设成hexbinary应该就可以了。
      

  3.   

    make the DataColumn of byte array type, then you can do try something like (VB):        Dim ms As New IO.MemoryStream()
            Dim p As New Bitmap("c:\fish.bmp")
            p.Save(ms, p.RawFormat)
            Dim arrImage() As Byte = ms.GetBuffer        'create a new row of data in the dataset
            Dim r As DataSet1.Table2Row = DataSet11.Photos.NewTable2Row
            r.name = "fish"
            'set the picture field of the dataset row to the Byte array
            r.picture = arrImage        'add the row to the dataset
            DataSet11.Photos.Rows.Add(r)        'save the data in the dataset to the database
            OleDbDataAdapter1.Update(DataSet11)
    http://groups.google.com/groups?q=bitmap+save+dataset+picturebox+memorystream&hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=Os1JpBupCHA.2796%40TK2MSFTNGP10&rnum=1
      

  4.   

    http://expert.csdn.net/Expert/topic/1446/1446130.xml?temp=1.383609E-02
      

  5.   

    我用的是一个Strongtype的dataSet(报表用),请问放image的字段用什么类型?