hai please solve my problem
want to up load the image file in msaccess database.. i get error
// syntax error in INSERT INTO
dim data() as byte
If Trim(TextBox1.Text) = "" Then
MsgBox("please select a image")
Exit Sub
End If
Dim fs As New FileStream(Trim(TextBox1.Text), FileMode.Open, FileAccess.Read)
Data = New [Byte](fs.Length) {}
fs.Read(data, 0, fs.Length)
sSQL = "INSERT INTO image VALUES (data)"
dba.Execute(sSQL)
If Trim(TextBox1.Text) = "" Then
MsgBox("please select a image")
Exit Sub
End If
Dim fs As New FileStream(Trim(TextBox1.Text), FileMode.Open, FileAccess.Read)
Data = New [Byte](fs.Length) {}
fs.Read(data, 0, fs.Length)
sSQL = "INSERT INTO image VALUES (data)"
dba.Execute(sSQL)
|