cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
What’s new: end-to-end encryption, Replay and Dash updates. Find out more about these updates, new features and more here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Re: I want to download large file (more than 50 mb) using .net sdk

I want to download large file (more than 50 mb) using .net sdk

RajanKhorasiya
Explorer | Level 3

How to set timeout for downloading large files from dropbox using .net sdk i am using below code

try
{
using (var response = await client.Files.DownloadAsync(file.FolderName + file.FileName))
{

using (var fileStream = File.Create(destinationpath + file.FileName))
{
var destPath = sourcepath + "/Recevied" + file.FolderName + file.FileName;
entries.Add(new RelocationPath(file.FolderName + file.FileName, destPath));
(await response.GetContentAsStreamAsync()).CopyTo(fileStream);


}
}
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}

1 Reply 1

Greg-DB
Dropbox Staff

You can find an example of setting a timeout with the .NET SDK here:

https://github.com/dropbox/dropbox-sdk-dotnet/blob/master/dropbox-sdk-dotnet/Examples/SimpleTest/Pro...

Need more support?