cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox 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: 

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?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?