<?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: How to use DropboxClient.Files.DownloadAsync() to download a part of a file? in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-use-DropboxClient-Files-DownloadAsync-to-download-a-part/m-p/231055#M12588</link>
    <description>&lt;P&gt;Thanks a lot Greg for the reply!&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jul 2017 20:05:12 GMT</pubDate>
    <dc:creator>leoyuan2000</dc:creator>
    <dc:date>2017-07-06T20:05:12Z</dc:date>
    <item>
      <title>How to use DropboxClient.Files.DownloadAsync() to download a part of a file?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-use-DropboxClient-Files-DownloadAsync-to-download-a-part/m-p/229509#M12466</link>
      <description>&lt;P&gt;I'm using Dropbox .net api&amp;nbsp;DropboxClient.Files.DownloadAsync() to download files from my Dropbox account. The API document says it supports file range spec, meaning I can download&amp;nbsp;the first 1000 bytes of a file instead of the whole file, but I couldn't find how to set the range. Can anybody help? Thanks a lot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sample code here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;HttpClient httpClient = new HttpClient(new WebRequestHandler { ReadWriteTimeout = 10 * 1000 })
{
// Specify request level timeout which decides maximum time that can be spent on
// download/upload files.
Timeout = TimeSpan.FromMinutes(20)
};
&amp;nbsp;
var config = new DropboxClientConfig("myDropboxApp")
{
HttpClient = httpClient
};
&amp;nbsp;
downloadAgent = new DropboxClient(AccessToken, config);
&amp;nbsp;
using (var response = await downloadAgent .Files.DownloadAsync(folder + "/" + file))
{
fileSize = response.Response.Size;
const int bufferSize = 1024 * 1024;
...
}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:21:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-use-DropboxClient-Files-DownloadAsync-to-download-a-part/m-p/229509#M12466</guid>
      <dc:creator>leoyuan2000</dc:creator>
      <dc:date>2019-05-29T09:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to use DropboxClient.Files.DownloadAsync() to download a part of a file?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-use-DropboxClient-Files-DownloadAsync-to-download-a-part/m-p/229568#M12474</link>
      <description>The HTTP interface itself for API v2 does support "Range Retrieval Requests", but that's unfortunately not currently implemented in the .NET SDK you're using. I'll send this along as a feature request for that, but I can't promise if/when that would be implemented there.</description>
      <pubDate>Tue, 27 Jun 2017 21:46:10 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-use-DropboxClient-Files-DownloadAsync-to-download-a-part/m-p/229568#M12474</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-06-27T21:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to use DropboxClient.Files.DownloadAsync() to download a part of a file?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-use-DropboxClient-Files-DownloadAsync-to-download-a-part/m-p/231055#M12588</link>
      <description>&lt;P&gt;Thanks a lot Greg for the reply!&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2017 20:05:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-use-DropboxClient-Files-DownloadAsync-to-download-a-part/m-p/231055#M12588</guid>
      <dc:creator>leoyuan2000</dc:creator>
      <dc:date>2017-07-06T20:05:12Z</dc:date>
    </item>
  </channel>
</rss>

