Announcements
Known issues updated. Learn more
Highlighted

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

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

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

Dropboxer

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...

Reply
Loading...
API Support

Have a question? Our Dropbox Community is here to help you find an answer!
You won’t have to wait too long for a reply, but why not learn more about the Community while you’re here.

Not the right discussion for you? Find out what else our Community has to say about API Support.

Or, search our Help Center for even more.

Who's talking
Top contributors to this post