Posted on: 11/17/2013 7:18:39 PM | Views : 750

hi,
i am using this code to upload multiple image into access database
i am getting no errors but when i upload 1 image in database 2 images are inserted with same data and same image plz help..
Try openAccessConnection()
Dim imageSize As Int64 imageSize = file_upload.PostedFile.ContentLength
Dim imageContent(imageSize) As Byte
Dim fileCollection As HttpFileCollection = Request.Files
For i As Integer = 0 To fileCollection.Count - 1 Dim uploadfile As HttpPostedFile = fileCollection(i) If uploadfile.ContentLength > 0 Then Dim cmd As New OleDbCommand("insert into uploadjob(jobdescription,email,[date],jobno,status,img_stream,username) values(@jobdescription,@email,'" & TextBox3.Text & "',@jobno,@status,@img_stream,@username)", myAccessConnection) cmd.Parameters.Add("@jobdescription", OleDbType.VarChar).Value = TextBox1.Text cmd.Parameters.Add("@ ...

Go to the complete details ...