Do I have to call job1.initialize for each and every job1.release?
I am downloading files in succession, and it seems to work, but sometimes it doesnt and gives me weird timeout errors.
code:
thoughts?
I am downloading files in succession, and it seems to work, but sometimes it doesnt and gives me weird timeout errors.
code:
B4X:
'Now that we have the filenames for the latest frames, lets download them one by one.
For I = 0 To FileNames.Length-1
job1.Download("http://xxxxxxxxxxxxx/files/" & FileNames(I))
Wait For (job1) JobDone(job1 As HttpJob)
If job1.Success Then
Dim out As OutputStream = File.OpenOutput(File.DirApp, i & ".tif", False)
File.Copy2(job1.GetInputStream, out)
out.Close
Else
Log(job1.ErrorMessage)
Return 0
End If
job1.Release
Next
thoughts?