1.图片文件写入
Dim tmpImg As image
Dim r As DataRow
Dim ms As New MemoryStream
Dim data() As Byte
r = myDataSet.Tables(myTableName).NewRow
tmpImg = Image.FromFile("c:xxx.jpg")
tmpImg.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg)
tmpImg.Dispose()
ReDim data(ms.Length)
ms.Position = 0
...[ 查看全文 ]