B basil99 Active Member Licensed User Longtime User Apr 5, 2013 #1 Hi! spent 2 days "fighting" with the following problem. I have a bunch of files to download with HttpUtils2: Code: Copy 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
Hi! spent 2 days "fighting" with the following problem. I have a bunch of files to download with HttpUtils2: Code: Copy 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
Erel B4X founder Staff member Licensed User Longtime User Apr 5, 2013 #2 How many files are you downloading? A simple solution will be to show one progress bar that tracks the progress of the downloaded files (10 files out of 20 files). Upvote 0
How many files are you downloading? A simple solution will be to show one progress bar that tracks the progress of the downloaded files (10 files out of 20 files).
B basil99 Active Member Licensed User Longtime User Apr 5, 2013 #3 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
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
B basil99 Active Member Licensed User Longtime User Apr 5, 2013 #4 if will be amazing to have smth like this: Code: Copy 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
if will be amazing to have smth like this: Code: Copy 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