Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Feb 16, 2006 11:01 AM by vivekgrs
Feb 16, 2006 11:01 AM|LINK
i had tried to upload the file to access database. i successfully done that one. now i went into the access database, open the particular table and i had tried to open the file which was uploaded through asp.net. but it shows error. the error is "
A probem occured while microsoft access communicating with ole server or Activex control. i dont know wat is the problem. whether the problem is in coding or access database. i had mention my coding here. can anyone help me
Private Sub up_Click(ByVal sender
ByVal e As System.EventArgs)
intImageSize = file1.PostedFile.ContentLength
strImageType = file1.PostedFile.ContentType
ImageStream = file1.PostedFile.InputStream
intStatus = ImageStream.Read(ImageContent, 0, intImageSize)
OleDbCommand1.CommandText = "insert into mytbl([imgid]) values (@personimage)"
prmPersonImage.Value = ImageContent
Response.Write("New person successfully added!")
Response.Write("Insert Failed. Error Details are: " & SQLexc.ToString())