Android Tutorial Download huge files with HttpUtils2

Status
Not open for further replies.

DonManfred

Expert
Licensed User
Longtime User
i downloaded the sample, changed the url to yours.
Out of three runs i got

but it works at least....
 

ibra939

Active Member
Licensed User
Longtime User
 

Tempomaster

Active Member
Licensed User
Longtime User
I´ve changed the url to a file on my webspace.
It has just finished the third download of a 101mb file successfully.

Note that network errors can happen due to bad internet connection, other network problems.

I think that is not the reason. Too many users of the app report the error. Downloading this file with other apps works reliably. There are other solutions in B4A ?
 

ibra939

Active Member
Licensed User
Longtime User
I´ve changed the url to a file on my webspace.
It has just finished the third download of a 101mb file successfully.

Note that network errors can happen due to bad internet connection, other network problems.

the file note wotking i download it show my this

Please re-upload the file i need to check it
 

Attachments

  • Untitled.jpg
    315.6 KB · Views: 697

ibra939

Active Member
Licensed User
Longtime User
I think that is not the reason. Too many users of the app report the error. Downloading this file with other apps works reliably. There are other solutions in B4A ?


I´ve changed the url to a file on my webspace.
It has just finished the third download of a 101mb file successfully.

Note that network errors can happen due to bad internet connection, other network problems.

where the new file URL we need the file to test it ???
 

Tempomaster

Active Member
Licensed User
Longtime User
the file note wotking i download it show my this

Please re-upload the file i need to check it

The file is ok. The screenshot shows the content of the zip file. The download routine from post #1 does not work reliably.
 

aidymp

Well-Known Member
Licensed User
Longtime User
The file is ok. The screenshot shows the content of the zip file. The download routine from post #1 does not work reliably.

Maybe I can shed some light on this, I had the same problem! i wrote an app for a client in China, the app was fine running it in the UK, they said the app did not work! download kept failing, so after lots of tests it appeared that most servers seem to stall if only for a few milliseconds, this doesn't cause any problems for most programs or web browsers however this method is seems to fail instantly. I have since switched to an expensive VPS so i get this error very rarely. But it seems to have just resurfaced but only on Apple Mac's I use the same base code for my Android, PC and Mac app, all are fine, but i am getting download failures on Macs'

I did read there was a way to change the timeout, but its not supported with this method, maybe someone can advise if we can change the timeout on this routine?

Thanks

Aidy
 

Martin Larsen

Active Member
Licensed User
Longtime User
Would we be better off using the new resumable subs and the Wait For construction instead of using this library?
 

aidymp

Well-Known Member
Licensed User
Longtime User
Is this still current? or is there a newer method?

Sorry I'm recreating old projects so may ask this on a few threads, as the forum is getting a little cluttered with old news!

Thanks

Aidy
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…