Shay Well-Known Member Licensed User Longtime User Jun 29, 2013 #1 Hi I need my app to check if some files exist locally and if not exist, it need to connect to some web server and download these files how do I do that? is there any wget? or other way to get the files?
Hi I need my app to check if some files exist locally and if not exist, it need to connect to some web server and download these files how do I do that? is there any wget? or other way to get the files?
Shay Well-Known Member Licensed User Longtime User Jun 29, 2013 #3 thanks is this library, since I cannot find it Upvote 0
Johnmcenroy Active Member Licensed User Longtime User Jun 29, 2013 #4 It is code module - http://www.b4x.com/forum/basic4andr...web-services-now-even-simpler.html#post109068 And since B4A 2.7 is built-in library Best regards Upvote 0
It is code module - http://www.b4x.com/forum/basic4andr...web-services-now-even-simpler.html#post109068 And since B4A 2.7 is built-in library Best regards
Shay Well-Known Member Licensed User Longtime User Jun 30, 2013 #5 Hi I downloaded the new B4A 2.7 and I manage to download file 2 questions: 1. where is the file saved by default? 2. if I have 10 files to download, how can i create progress bar to show it thanks Upvote 0
Hi I downloaded the new B4A 2.7 and I manage to download file 2 questions: 1. where is the file saved by default? 2. if I have 10 files to download, how can i create progress bar to show it thanks
thedesolatesoul Expert Licensed User Longtime User Jul 1, 2013 #7 Shay said: Hi I downloaded the new B4A 2.7 and I manage to download file 2 questions: 1. where is the file saved by default? 2. if I have 10 files to download, how can i create progress bar to show it thanks Click to expand... 1. I *think* File.DirInternalCache 2. http://www.b4x.com/forum/basic4andr...ownload-huge-files-httputils2.html#post175418 Upvote 0
Shay said: Hi I downloaded the new B4A 2.7 and I manage to download file 2 questions: 1. where is the file saved by default? 2. if I have 10 files to download, how can i create progress bar to show it thanks Click to expand... 1. I *think* File.DirInternalCache 2. http://www.b4x.com/forum/basic4andr...ownload-huge-files-httputils2.html#post175418
Shay Well-Known Member Licensed User Longtime User Jul 3, 2013 #8 the Log of Job.GetString is returning the file raw data so is it saving the file?, or I need to create somehow file from the GetString? Sub JobDone (Job As HttpJob) Dim Error As String ' Dim MP2 As MediaPlayer Log("JobName = " & Job.JobName & ", Success = " & Job.Success) If Job.Success = True Then Log(Job.GetString) Upvote 0
the Log of Job.GetString is returning the file raw data so is it saving the file?, or I need to create somehow file from the GetString? Sub JobDone (Job As HttpJob) Dim Error As String ' Dim MP2 As MediaPlayer Log("JobName = " & Job.JobName & ", Success = " & Job.Success) If Job.Success = True Then Log(Job.GetString)
Erel B4X founder Staff member Licensed User Longtime User Jul 4, 2013 #9 There are many relevant examples and discussions: Basic4android Search: httputils2 download file Upvote 0