<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Download array of images in APIv2 Ios objectie c` in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-array-of-images-in-APIv2-Ios-objectie-c/m-p/218798#M11506</link>
    <description>The download methods, such as the downloadUrl method you're using, enable you to download a single specified file. The API doesn't offer a way to download files in bulk, so to download multiple files, you should loop through and call the download method for each one you need. (You'll probably want to limit how many you download concurrently though.)</description>
    <pubDate>Mon, 01 May 2017 19:13:01 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2017-05-01T19:13:01Z</dc:date>
    <item>
      <title>Download array of images in APIv2 Ios objectie c`</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-array-of-images-in-APIv2-Ios-objectie-c/m-p/218667#M11492</link>
      <description>&lt;P&gt;HI support, How i can download the array of image from drobox using apiv2in IOS objective c.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using below code taht download only one Image from the droppbox.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;NSFileManager *fileManager = [NSFileManager defaultManager];
&amp;nbsp; &amp;nbsp; NSURL *outputDirectory = [fileManager URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask][0];
&amp;nbsp; &amp;nbsp; NSURL *outputUrl = [outputDirectory URLByAppendingPathComponent:@"Image.jpg"];
&amp;nbsp;&amp;nbsp; &amp;nbsp;
&amp;nbsp; &amp;nbsp; [[[client.filesRoutes downloadUrl:@"/Test1/Image2.jpg" overwrite:YES destination:outputUrl]
&amp;nbsp; &amp;nbsp; &amp;nbsp; setResponseBlock:^(DBFILESFileMetadata *result, DBFILESDownloadError *routeError, DBRequestError *networkError,
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NSURL *destination) {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (result)
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NSLog(@"%@\n", result);
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NSData *data = [[NSFileManager defaultManager] contentsAtPath:[destination path]];
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NSString *dataStr = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NSLog(@"%@\n", dataStr);
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } else
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NSLog(@"%@\n%@\n", routeError, networkError);
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&amp;nbsp; &amp;nbsp; &amp;nbsp; }] setProgressBlock:^(int64_t bytesDownloaded, int64_t totalBytesDownloaded, int64_t totalBytesExpectedToDownload)
&amp;nbsp; &amp;nbsp; {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NSLog(@"%lld\n%lld\n%lld\n", bytesDownloaded, totalBytesDownloaded, totalBytesExpectedToDownload);
&amp;nbsp; &amp;nbsp; &amp;nbsp; }];&lt;/PRE&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:23:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-array-of-images-in-APIv2-Ios-objectie-c/m-p/218667#M11492</guid>
      <dc:creator>katharina</dc:creator>
      <dc:date>2019-05-29T09:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Download array of images in APIv2 Ios objectie c`</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-array-of-images-in-APIv2-Ios-objectie-c/m-p/218798#M11506</link>
      <description>The download methods, such as the downloadUrl method you're using, enable you to download a single specified file. The API doesn't offer a way to download files in bulk, so to download multiple files, you should loop through and call the download method for each one you need. (You'll probably want to limit how many you download concurrently though.)</description>
      <pubDate>Mon, 01 May 2017 19:13:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-array-of-images-in-APIv2-Ios-objectie-c/m-p/218798#M11506</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-05-01T19:13:01Z</dc:date>
    </item>
  </channel>
</rss>

