Dim fs As New IO.FileStream(ProjectPath & "TM.JPG" , IO.FileMode.Open , IO.FileAccess.Read) '用文件流打开图片
Dim br As New IO.BinaryReader(fs) '根据文件流,申明一个二进制阅读器
Dim ImageByte() As Byte = br.ReadBytes(fs.Length) '阅读器读取文件流,并将独到的二进制放入数组ImageByte中,
Dim ImageString As String = BitConverter.ToString(imageByte).Replace("-", "")
Dim cmd As SQLCommand = new SQLCommand()
cmd.C
cmd.CommandText = "Insert Into 员工档案 (姓名,员工照) Values('朱健', 0x" + ImageString + ")"
cmd.ExecuteNonQuery()
MessageBox.Show("存储图片成功")
如何修改这个?狐表不支持图片字段的.

此主题相关图片如下:qq截图20120727134259.png
