Hello.
I'm trying to download some files from a couple of folders in dropbox, but when I try to download a couple of files that I have of about 20 gb, something strange happens. It appears that the file is downloaded correctly, but the file size in my local computer is about 13 gb, so the file it's corrupted. with 5gb files or lower this doesn't happen. this is the code.
dropboxFileInfo = (FileMetadata)item;
using (var response = await dbx.Files.DownloadAsync(dropboxFileInfo.PathLower.ToString()))
{
Console.WriteLine("Descargando " + dropboxFileInfo.Name.ToString() + "...");
using (FileStream fileStream = File.Create(localname))
{
(await response.GetContentAsStreamAsync()).CopyTo(fileStream);
var local = Convert.ToInt64(fileStream.Length);
var cloud = Convert.ToInt64(dropboxFileInfo.Size);
if (local == cloud)
{
Console.WriteLine("Descargado");
}
else
{
Console.WriteLine("Error al descargar");
}