Download files from web server

Shay

Well-Known Member
Licensed User
Longtime User
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
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

thedesolatesoul

Expert
Licensed User
Longtime User
Upvote 0

Shay

Well-Known Member
Licensed User
Longtime User
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
Top