Android Question download files

fanfalveto

Active Member
Licensed User
Longtime User
i see downloadmanager and other methods to download a file.but how i can download all .jpg files for example from a server? i don´t know names only extension .jpg.
Thank you
 

DonManfred

Expert
Licensed User
Longtime User
If you have access to a filelisting available then you get first the filelisting and then you get each file after another.

There is no "command" to do this all for you inside b4a. There is no such command in HTTP/www at all.

Without filelisting you have to call each website on this server and search for images inside the html-code you got . You must do everything any other webcrawler-Software do.

But i would not do this from a smartphone. There could be GBs of Imagedata on the Server. ;-)
 
Upvote 0

fanfalveto

Active Member
Licensed User
Longtime User
ok, then the best is include in the server an .txt file with all .jpg file names and then download and read this .txt file and then download each .jpg file?
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
If it is your server and you have - for example - php which you can use... You could make ONE archive which contains all images. Then you only have to transfer ONE file... After downloading you need to extracts the images from zip. I dunno whether there is a unziplibrary or not for b4a.
Elsewhere you make a txt, download it and the download each image insige it, yes...

You have to check your needs and your possibilities for the right solution for you
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…