You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

gagsbh's avatar
gagsbh
Helpful | Level 5
7 years ago

Large File Download

Hello,

 

I used Dropbox SDK for .NET to download a large file of size 1.3 GB but the program hung.

 

using (var response = await dbx.Files.DownloadAsync(path + "/" + file))
{
    byte[] buffer = await response.GetContentAsByteArrayAsync();
}

 

I then used Dropbox REST API - "https://content.dropboxapi.com/2/files/download"
with Authorization and Dropbox-API-Arg (with path as argument) as headers.
For smaller files the Rest Api worked, but for the 1.3 GB file download, the program threw "Out of Memory Exception".

 

How do I perform a download of such a larger file with size > 1GB.

 

Thanks,
Gagan