Support Topics Documentation Slack YouTube Blog

How to download all files (images) form directory in backendless?

Hi. I wonder if there is a way to download all images form a directory in backendless. I have a folder called templates, that has a number of images. I know how to download each individually, but it would be great if there is a way to download them all at one request. Thank you.

Currently this is what if do in iOS:

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:imageURL]
                                                           cachePolicy:NSURLRequestReloadIgnoringLocalAndRemoteCacheData
                                                       timeoutInterval:10];
    
    [request setHTTPMethod: @"GET"];
    
    NSError *requestError;
    NSURLResponse *urlResponse = nil;
    
    
    NSData *response1 = [NSURLConnection sendSynchronousRequest:request returningResponse:&urlResponse error:&requestError];
    UIImage *image=[UIImage imageWithData:response1];


    return image;

Ibragim,

There is no API to download multiple files with one request. You could create a zip file using console and then download that file.

Regards,
Mark

Thank you Mark!)

Is it possible to integrate the zip and download into the Custom Java API? I would like to create a front end API call that zips up a specific folder and gives it to the Java Server API.

Hello @Mark_Moline

Yes, you can do something similar with EVENT HANDLERS or TIMERS .
Support Java, JavaScript and CODELESS.
More detail for Codeless
More detail for Event Handlers
More detail for Timers
Also very interesting API Services