hibrid0 Active Member Licensed User Longtime User Nov 14, 2015 #1 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.
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 Nov 14, 2015 #2 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
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.
hibrid0 Active Member Licensed User Longtime User Nov 14, 2015 #3 DonManfred said: 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. Click to expand... Hi Don thanks for your answer, I go to try, but the name of every download is diferent. Upvote 0
DonManfred said: 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. Click to expand... Hi Don thanks for your answer, I go to try, but the name of every download is diferent.
DonManfred Expert Licensed User Longtime User Nov 14, 2015 #4 hibrid0 said: but the name of every download is diferent. Click to expand... Then set a different tag (filename to write to) each time? Upvote 0
hibrid0 said: but the name of every download is diferent. Click to expand... Then set a different tag (filename to write to) each time?