Need help/advice on HttpUtils2

basil99

Active Member
Licensed User
Longtime User
Hi!

spent 2 days "fighting" with the following problem. I have a bunch of files to download with HttpUtils2:

B4X:
dim H( FilesNumber ) as HttpJob
for c = 0 to FilesNumber - 1

        H( c ).Initialize( "", Me )
        H( c ).JobName = c
        H( c ).Download( FilesUrls( c ) )

Next

I need to be able to build "progress bars" for each file and overall progress, so i focus on this class http://www.b4x.com/forum/additional-libraries-classes-official-updates/19920-class-progress-bar-httputils2.html

It works fine with single file download, unfortunatly, i can't figure out how to expand this to get the result i want.

Please, advice how to tailor this for the mentioned task

Thank you
 

basil99

Active Member
Licensed User
Longtime User
Plan to have files number up to 16-32 ( pictures only )
Idea to have a sort of individual animated "progress" for each picture in gallery, so i need to be able to get downloaded size/file size for each pic
 
Upvote 0

basil99

Active Member
Licensed User
Longtime User
if will be amazing to have smth like this:

B4X:
dim H( FilesNumber ) as HttpJob

for c = 0 to FilesNumber - 1
        H( c ).Initialize( "", Me )
        H( c ).JobName = c
        H( c ).Download( FilesUrls( c ) )

Next


'.......
' and somewhere in Timer sub

    JobSize = H( c ).Size
    JobDownloaded = H( c ).Downloaded
 
Upvote 0
Top