Posted on: 11/18/2013 2:18:36 AM | Views : 857

hi i am using jquery to upload multiple image to database but when i upload 1 image 2 images are inserted when i upload 2 images 4 images are inserted plz help..
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("@email", OleDbType.VarChar).Value = TextBox2.Text cmd.Parameters.Add("@jobno&quo ...

Go to the complete details ...