I need to download a single file and I can't work out from the tutorial nor from the HelpViewer info on GetAsynchronously how to just download a file. It says:
GetAsynchronously (EventName As String, Output As java.i
utputStream, CloseOutput As Boolean, TaskId As Int) As Boolean
This command does not pass the URL. In the "complicated" tutorial, I see where you are passing a URL in
request.InitializeGet(MainUrl)
HttpClient1.Execute(request, MainRequestId)
but then I don't see where you are passing the information to select and download an image file.
Here's what I've got. Can you tell me what to change to get it to work?
Sub Process_Globals
Dim URL As String
URL = "http://www.aeyec.com/aic.jpg"
Dim HttpClient1 As HttpClient
End Sub
Sub Activity_Create(FirstTime As Boolean)
Dim request As HttpRequest
Response.GetAsynchronously(URL, File.OpenOutput _
(File.DirInternalCache, "aic.jpg", False), True, TaskID
End Sub
GetAsynchronously (EventName As String, Output As java.i
This command does not pass the URL. In the "complicated" tutorial, I see where you are passing a URL in
request.InitializeGet(MainUrl)
HttpClient1.Execute(request, MainRequestId)
but then I don't see where you are passing the information to select and download an image file.
Here's what I've got. Can you tell me what to change to get it to work?
Sub Process_Globals
Dim URL As String
URL = "http://www.aeyec.com/aic.jpg"
Dim HttpClient1 As HttpClient
End Sub
Sub Activity_Create(FirstTime As Boolean)
Dim request As HttpRequest
Response.GetAsynchronously(URL, File.OpenOutput _
(File.DirInternalCache, "aic.jpg", False), True, TaskID
End Sub