Hi, having a Sqlite table in the phone, I need to take a picture for each record, save it on the phone and when connected, send the records and each picture to a web server.
Any idea of how to do it?
dim tempImageFile As String = "tempimage.jpg"
dim image_list as list
image_list.initialize
tempfolder = Starter.rp.GetSafeDirDefaultExternal("shared")
Dim mp As MultipartFileData
mp.Initialize
mp.Dir = tempfolder
mp.FileName = tempImageFile
mp.KeyName = "file"
mp.ContentType = "image/jpg"
image_list.Initialize
image_list.Add(mp)
Dim jobupload As HttpJob
jobupload.Initialize("",Me)
jobupload.PostMultipart("yourwebsite.com/upload.php",NULL,image_list)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.