Android Question Download a file with httpUtils2

hibrid0

Active Member
Licensed User
Longtime User
Hi guys, I'm following the Erel example here: https://www.b4x.com/android/forum/threads/httputils2-web-services-are-now-even-simpler.18992/

The site generate a PDF documento to download, but the address is in this format: "http://www.domain.com/document/2/pdf", then download a file called something like this: "document2-13-11-2015.pdf"

With the code exposed the not download, and crash.

How can I download files from this type of URL
I check 18 Pages on the thread about this and 1 person ask the same question and receive the please new Thread, I track all messages from the user and he dont start I new thread asking about that.
 

DonManfred

Expert
Licensed User
Longtime User
You can set the wanted filename to store into the job.Tag when creating the job. In jobdone you can use the tag to save the file to this filename.
 
Upvote 0

hibrid0

Active Member
Licensed User
Longtime User
You can set the wanted filename to store into the job.Tag when creating the job. In jobdone you can use the tag to save the file to this filename.
Hi Don thanks for your answer, I go to try, but the name of every download is diferent.
 
Upvote 0
Top