I created a procedure (with HttpJob) that will download from the internet of a large (100-200) series of JPG images whose name is stored in a list; the content of this list is not fixed. After download, the files are then saved in the smartphone.
This procedure is very complex because I had to take into account that not all images of the list can be actually present on the internet.
However, it has a serious flaw: every time you run this procedure it will download ALL of the images, even if they are already present in the smartphone.
How to avoid the substantial burden of work?
Something like:
Many thanks in advance
This procedure is very complex because I had to take into account that not all images of the list can be actually present on the internet.
However, it has a serious flaw: every time you run this procedure it will download ALL of the images, even if they are already present in the smartphone.
How to avoid the substantial burden of work?
Something like:
B4X:
Sub DownloadFile ()
For i = 0 To FileList.Size-1
Arc = FileList.Get (i)
If File.Exists (File.DirRootExternal, Arc) = False then
end if
next
end sub
Many thanks in advance