We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
roman prog 89 level_
5 years agoExplorer | Level 3
DownloadAsync Big Files
roman prog 89 level_
5 years agoExplorer | Level 3
Привет. Подскажите, как написать код на C # для правильной загрузки больших файлов.
using (var response = await dbx.Files.DownloadAsync (PathDrop))
{
используя (var fileStream = File.Create (PathLocal))
{
response.GetContentAsStreamAsync (). Result.CopyTo (fileStream);
}
}
Я так понимаю, проблема в таймауте.
var aHttpClient = новый HttpClient (новый WebRequestHandler {ReadWriteTimeout = 10 * 1000}) {Timeout = TimeSpan.FromMinutes (20)};
Ранее решение было представлено следующим образом.Но сейчас это не работает. Подскажите, как правильно написать код, если можно пример.
About Discuss Dropbox Developer & API
Make connections with other developers
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!