<?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 Large File Download in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Large-File-Download/m-p/281126#M17183</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I used Dropbox SDK for .NET to download a large file of size 1.3 GB but the program hung.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;using (var response = await dbx.Files.DownloadAsync(path + "/" + file))&lt;BR /&gt; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; byte[] buffer = await response.GetContentAsByteArrayAsync();&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I then used Dropbox REST API - "&lt;A href="https://content.dropboxapi.com/2/files/download" target="_blank"&gt;https://content.dropboxapi.com/2/files/download&lt;/A&gt;"&lt;BR /&gt;with Authorization and Dropbox-API-Arg (with path as argument) as headers.&lt;BR /&gt;For smaller files the Rest Api worked, but for the 1.3 GB file download, the program threw "Out of Memory Exception".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do I perform a download of such a larger file with size &amp;gt; 1GB.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Gagan&lt;/P&gt;
&lt;DIV id="selenium-highlight"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="selenium-highlight"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
    <pubDate>Wed, 29 May 2019 09:12:30 GMT</pubDate>
    <dc:creator>gagsbh</dc:creator>
    <dc:date>2019-05-29T09:12:30Z</dc:date>
    <item>
      <title>Large File Download</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Large-File-Download/m-p/281126#M17183</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I used Dropbox SDK for .NET to download a large file of size 1.3 GB but the program hung.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;using (var response = await dbx.Files.DownloadAsync(path + "/" + file))&lt;BR /&gt; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; byte[] buffer = await response.GetContentAsByteArrayAsync();&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I then used Dropbox REST API - "&lt;A href="https://content.dropboxapi.com/2/files/download" target="_blank"&gt;https://content.dropboxapi.com/2/files/download&lt;/A&gt;"&lt;BR /&gt;with Authorization and Dropbox-API-Arg (with path as argument) as headers.&lt;BR /&gt;For smaller files the Rest Api worked, but for the 1.3 GB file download, the program threw "Out of Memory Exception".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do I perform a download of such a larger file with size &amp;gt; 1GB.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Gagan&lt;/P&gt;
&lt;DIV id="selenium-highlight"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="selenium-highlight"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 29 May 2019 09:12:30 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Large-File-Download/m-p/281126#M17183</guid>
      <dc:creator>gagsbh</dc:creator>
      <dc:date>2019-05-29T09:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: Large File Download</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Large-File-Download/m-p/281222#M17200</link>
      <description>You appear to be trying to read the entirety of the contents into memory, which is likely to fail for large files like this.&lt;BR /&gt;&lt;BR /&gt;You'll probably want to use GetContentAsStreamAsync in the SDK (instead of GetContentAsByteArrayAsync), so you can access the contents via a stream, instead of reading it all into memory:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Stone_IDownloadResponse_1_GetContentAsStreamAsync.htm" target="_blank"&gt;https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Stone_IDownloadResponse_1_GetContentAsStreamAsync.htm&lt;/A&gt;</description>
      <pubDate>Wed, 20 Jun 2018 18:06:20 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Large-File-Download/m-p/281222#M17200</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-06-20T18:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: Large File Download</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Large-File-Download/m-p/281413#M17210</link>
      <description>&lt;P&gt;Thanks! It worked.&lt;/P&gt;
&lt;DIV id="selenium-highlight"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 21 Jun 2018 09:02:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Large-File-Download/m-p/281413#M17210</guid>
      <dc:creator>gagsbh</dc:creator>
      <dc:date>2018-06-21T09:02:12Z</dc:date>
    </item>
  </channel>
</rss>

