Discuss this help topic in SecureBlackbox Forum
Clouds: Download file
To download a file from Google drive take the following steps:
C#:
TElGoogleDriveFile file = storage.AcquireObject(@"...") as TElGoogleDriveFile;
try
{
FileStream output = new FileStream(@"X:\downloaded.bin", FileMode.Create);
try
{
file.Read(output);
}
finally
{
output.Close();
}
}
finally
{
file.Release();
}
TElGoogleDriveDataStorage class has OnProgress event, which allows to track and show the progress of data download, and interrupt the transfer if necessary.
If the file was encrypted or signed when it was uploaded to the server, then during downloading of such files the additional steps are to be taken.