Sub ReceivingProgressed(bytesReceived As Int64, totalBytes As Int64, newData As String) Handles ReceivingProgressed
If bytesReceived = totalBytes Then
Me.Disconnect
Else
System.DebugLog Str(bytesReceived) + " bytes received on a total of " + Str(totalBytes) + " bytes."
End If
End Sub
In the WebConnexion Class (URLConnection). But I continue to get that message.
I can ask manually more than one file (if I change the URL and click in the button - no change in the example), but I want to make a batch download passing URLs with dates.
Now thatās the morning, mlaybe I will find a solutionā¦
The only bad solution (unusable) is to change the date manually, click in GET and click in a button I add so I can extract the data I really want.
If I only have to do it two or three timesā¦ I have to do it n times 365, so this is an unusable solution.
Emile, could you use a timer and make one request every second?
Keep in mind that you may be limited by the OS in terms of how many simultaneous requests you can have going. You could however make a subclass of URLConnection that set a flag when FileReceived fires so you know when itās done. Then if you have an array of running connections, use the timer to remove the ones that are ādoneā and then create that many more from your queue. That way maybe you only have 10 at any given time, but your requests will run until completion.
Please, donāt give up. It is great that you want to make things work on your own.
There are people that want to help you, the problem I see is that there can be some barriers between the information you provide and the information you receive.
From you original post, it seemed like the Example that comes with Xojo had problems but later you said you are modifying the example to download several URLs.
Of course, those who know understand the error and tried to help but maybe the information they provided is not enough for you to apply those ideas to your code.
I will say that if you provide a sample project (zip it and upload to this thread), someone (or several people) will give you specific code changes for your project to work.