I develop a program is insert picture and data to Microsoft access 2010 database. can someone teach or give me some reference how to insert a picture to access database .
below is a code i trying to write. i am no ideal how to write insert image code.


Dim cmd As New OleDb.OleDbCommand
If Not cnn.State = ConnectionState.Open Then
cnn.Open()
End If
cmd.Connection = cnn
If CStr(Me.TextBox1.Tag) & "" = "" Then

''Image
Dim DataPic_Update As Byte()
DataPic_Update = ImageToBytes(PictureBox1.Image, ImageFormat.Png) 'jpeg'
''

cmd.CommandText = "INSERT INTO Table1([Picture],[F1],[F2])" &
"VALUES('" & Me.TextBox2.Text & "', '" & Me.TextBox3.Text & "')"

cmd.ExecuteNonQuery()



MsgBox("Save data successful", MsgBoxStyle.Information, "Message")
Else

'update data in my data table
cmd.CommandText = "UPDATE FA_Audit_Asset_Det " & _
" SET" & _
" [ID]='" & Me.TextBox1.Text & "'" & _
", [F1]='" & Me.TextBox2.Text & "'" & _
" WHERE [ID]=" & CStr(Me.TextBox1.Tag)


MsgBox("Update Data Successful", MsgBoxStyle.OkOnly, "Message")

End If
RefreshData()
'clear form

cnn.Close()
thnaks a lot