<?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: Is it possible to load a small part of a file? in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-it-possible-to-load-a-small-part-of-a-file/m-p/926#M74</link>
    <description>&lt;P&gt;Hi Jeremy,&amp;nbsp;no, unfortunately the iOS Core SDK doesn't offer a way to do range/partials requests like this,&amp;nbsp;but I'll be sure to pass this along as a feature request.&lt;/P&gt;
&lt;P&gt;Note that it is open source though, so you could modify the source if/as desired.&lt;/P&gt;</description>
    <pubDate>Tue, 08 Mar 2016 02:34:31 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2016-03-08T02:34:31Z</dc:date>
    <item>
      <title>Is it possible to load a small part of a file?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-it-possible-to-load-a-small-part-of-a-file/m-p/918#M66</link>
      <description>&lt;P&gt;I'm using the Sync API on iOS. The app deals with a lot of large data files which have information in their header. I'd like to display this information (perhaps less than 1kb of data) to the user without having to download a file (anywhere up to 50mb and beyond). I can only find a way to load the entire file into an NSData but that would be too slow. Is there some way to load only the first part of a file?&lt;/P&gt;

&lt;P&gt;I'd also like the possibility of creating and uploading thumbnails because Dropbox's servers aren't be able to create thumbnails for the files we use. Ideally we could upload a thumbnail in a common browser image file format (PNG, JPG or GIF for example) so that Dropbox could show users these thumbnails in other contexts.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:47:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-it-possible-to-load-a-small-part-of-a-file/m-p/918#M66</guid>
      <dc:creator>Steven T.</dc:creator>
      <dc:date>2019-05-29T09:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to load a small part of a file?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-it-possible-to-load-a-small-part-of-a-file/m-p/919#M67</link>
      <description>&lt;P&gt;The Sync SDK doesn't currently offer support for downloading/accessing partial pieces of files, but I'll be sure to pass this along as a request.&lt;/P&gt;

&lt;P&gt;The Core API /files (GET) endpoint itself does support Range Retrieval Requests though, so if you need this functionality you may want to consider using that directly instead:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/core/docs#files-GET" rel="nofollow noreferrer"&gt;https://www.dropbox.com/developers/core/docs#files-GET&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I'll also file this as a request for a way to supply custom thumbnails.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Dec 2014 05:06:40 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-it-possible-to-load-a-small-part-of-a-file/m-p/919#M67</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2014-12-10T05:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to load a small part of a file?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-it-possible-to-load-a-small-part-of-a-file/m-p/920#M68</link>
      <description>&lt;P&gt;Thanks for the quick answer. Is it possible to mix the Sync API and the Core API? Can I use the Sync API for authorisation are file operations and just use core for the GET with a range? I looked into using the Core API but the authorisation process appears to always use the browser and I prefer to let the user go through the Dropbox app if its installed.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Dec 2014 20:50:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-it-possible-to-load-a-small-part-of-a-file/m-p/920#M68</guid>
      <dc:creator>Steven T.</dc:creator>
      <dc:date>2014-12-11T20:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to load a small part of a file?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-it-possible-to-load-a-small-part-of-a-file/m-p/921#M69</link>
      <description>&lt;P&gt;The authorization flow that uses the Dropbox app is built into the official SDKs. It's technically possible to use both the Core and Sync SDKs, but it's not easy. (It wasn't something we designed for since we didn't intend for both to be used in the same app. The basic idea would be to import the Sync SDK normally, and then import the Core SDK source. You'd then need to remove some OS X files and rename duplicate classes.) &lt;/P&gt;

&lt;P&gt;In this case, I would like to recommend just using the Sync SDK, and manually making the Core API call using the access token, but unfortunately the Sync SDK doesn't currently expose the access token. (We do have that open as a feature request though.) Apologies I don't have a good solution here.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Dec 2014 05:28:33 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-it-possible-to-load-a-small-part-of-a-file/m-p/921#M69</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2014-12-12T05:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to load a small part of a file?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-it-possible-to-load-a-small-part-of-a-file/m-p/922#M70</link>
      <description>&lt;P&gt;Thanks again for the quick response.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Dec 2014 09:10:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-it-possible-to-load-a-small-part-of-a-file/m-p/922#M70</guid>
      <dc:creator>Steven T.</dc:creator>
      <dc:date>2014-12-12T09:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to load a small part of a file?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-it-possible-to-load-a-small-part-of-a-file/m-p/923#M71</link>
      <description>&lt;P&gt;Is it possible to bypass the Dropbox Core API and use the new UIDocumentPickerViewController stuff in iOS 8 for exporting and importing documents from Dropbox? I use it already for downloading from Dropbox, but for uploading to Dropbox I'm still using the Core API. That might solve the problem with being able to use the Core API and the Sync API at the same time.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jan 2015 10:56:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-it-possible-to-load-a-small-part-of-a-file/m-p/923#M71</guid>
      <dc:creator>Brendan D.</dc:creator>
      <dc:date>2015-01-02T10:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to load a small part of a file?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-it-possible-to-load-a-small-part-of-a-file/m-p/924#M72</link>
      <description>&lt;P&gt;I believe the official Dropbox for iOS app currently registers as a Document Picker with the following modes:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;UIDocumentPickerModeImport&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;UIDocumentPickerModeExportToService&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;If those suits your use case you can certainly use those instead.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Jan 2015 07:45:27 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-it-possible-to-load-a-small-part-of-a-file/m-p/924#M72</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-01-03T07:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to load a small part of a file?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-it-possible-to-load-a-small-part-of-a-file/m-p/925#M73</link>
      <description>&lt;P&gt;I have the same question, but with regard to the Core API, rather than the Sync API. I need to be able to read the first few lines of a file, in order to decide whether it is appropriate to download. In the Android version of my app I can do this with the Core API by using the DropboxAPI.getFileStream method, and using the returned DropboxInputStream to&amp;nbsp;read just the first bit (4k, in my case) of the file, and then closing the DropboxInputStream. &amp;nbsp;I can then examine the header information I have read, and if the file meets my conditions for downloading, I go ahead and&amp;nbsp;download it using&amp;nbsp;DropboxAPI.getFile.&lt;/P&gt;
&lt;P&gt;I don't see any way in the iOS DropboxSDK world to do this kind of partial read. It looks like I am stuck with downloading the entire file with DBRestClient's loadFile:intoPath: method. &amp;nbsp;Am I missing something here?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 05:43:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-it-possible-to-load-a-small-part-of-a-file/m-p/925#M73</guid>
      <dc:creator>Jeremy P.3</dc:creator>
      <dc:date>2016-03-07T05:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to load a small part of a file?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-it-possible-to-load-a-small-part-of-a-file/m-p/926#M74</link>
      <description>&lt;P&gt;Hi Jeremy,&amp;nbsp;no, unfortunately the iOS Core SDK doesn't offer a way to do range/partials requests like this,&amp;nbsp;but I'll be sure to pass this along as a feature request.&lt;/P&gt;
&lt;P&gt;Note that it is open source though, so you could modify the source if/as desired.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2016 02:34:31 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-it-possible-to-load-a-small-part-of-a-file/m-p/926#M74</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-03-08T02:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to load a small part of a file?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-it-possible-to-load-a-small-part-of-a-file/m-p/927#M75</link>
      <description>&lt;P&gt;Hi Gregory,&lt;/P&gt;
&lt;P&gt;Thanks for the feedback. &amp;nbsp;That's kind of what I expected.&lt;/P&gt;
&lt;P&gt;I appreciate the open source suggestion, though I would rather rely on vanilla Dropbox SDK code than on my own home-brewed variant. &amp;nbsp;Also, as far as I could see from the Dropbox Developer site, the only iOS interface that is open source is DBChooser, not the full DropboxSDK. &amp;nbsp;But if the DropboxSDK code really is open source, I wouldn't mind browsing it. Can you point me to where the open source archives for the iOS DropboxSDK are available?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2016 03:45:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-it-possible-to-load-a-small-part-of-a-file/m-p/927#M75</guid>
      <dc:creator>Jeremy P.3</dc:creator>
      <dc:date>2016-03-08T03:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to load a small part of a file?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-it-possible-to-load-a-small-part-of-a-file/m-p/928#M76</link>
      <description>&lt;P&gt;Sure, the source for the iOS Core SDK is included in the download here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers-v1/core/sdks/ios" rel="nofollow noreferrer"&gt;https://www.dropbox.com/developers-v1/core/sdks/ios&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2016 03:46:10 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-it-possible-to-load-a-small-part-of-a-file/m-p/928#M76</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-03-08T03:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to load a small part of a file?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-it-possible-to-load-a-small-part-of-a-file/m-p/929#M77</link>
      <description>&lt;P&gt;I had downloaded the SDK a while back, but didn't notice that in addition to the DropboxSDK.framework folder (which I added to my Xcode project), the download included the sources, too. &amp;nbsp;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2016 12:11:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-it-possible-to-load-a-small-part-of-a-file/m-p/929#M77</guid>
      <dc:creator>Jeremy P.3</dc:creator>
      <dc:date>2016-03-08T12:11:00Z</dc:date>
    </item>
  </channel>
</rss>

