How to copy file from device to webserver using http library.pls advise
Sub Process_Globals
Dim HttpClient1 As HttpClient
Dim InputStream1 As InputStream
End Sub
Sub Activity_Create(FirstTime As Boolean)
If FirstTime Then
HttpClient1.Initialize("HttpClient1")
End If
Dim req As HttpRequest
Dim size As Long
size = File.Size(File.DirRootExternal, "somefile")
InputStream1 = File.OpenInput(File.DirRootExternal, "somefile")
req.InitializePost("http://....", InputStream1, size)
HttpClient1.Execute(req, 1)
End Sub
Sub HttpClient1_ResponseSuccess (Response As HttpResponse, TaskId As Int)
InputStream1.Close
End Sub