gpailler / MegaApiClient

MegaApiClient is a C# .Net library to access http://mega.co.nz / http://mega.nz cloud storage and file hosting service.
https://gpailler.github.io/MegaApiClient/
MIT License
225 stars 77 forks source link

Download Issues #73

Closed CodeXLmao closed 7 years ago

CodeXLmao commented 7 years ago

Got download working for a few downloads. Trying to get download with stream working with a download at 8GB and it's not working, the same code is working for other downloads, I am not sure why this is happening. Example Code Below:

const string FileToDownload = "Have Removed Link";
var nodeInfo = client.GetNodeFromLink(new Uri("Have Removed Link"));

IProgress<double> progress = new Progress<double>(x => progressBarControl1.EditValue = x);
progressBarControl1.EditValueChanged += progressBarControl1_EditValueChanged;
progressBarControl1.Text = progressBarControl1.EditValue.ToString();

client.DownloadFileAsync(new Uri(FileToDownload), nodeInfo.Name, progress);
labelControl2.Text = labelControl2.Text + nodeInfo.Name;
gpailler commented 7 years ago

What do you mean by it's not working. Do you have any exception in VS output window? Does it work if you use DownloadFile instead the Async version ?

CodeXLmao commented 7 years ago

Sorry for not responding, been busy. I will see if it works with the downloadfile without async but if it does work without async then I will be stuck with no progression and the only output I get from VS is Bandwidth Limit Exceeded which I have looked around about and noone really talks about it.

CodeXLmao commented 7 years ago

Any help man?

gpailler commented 7 years ago

I tried to download a large file and I faced the same Bandwidth error 509. It's not related to MegaApiClient library but new Mega limitation for free accounts (https://www.reddit.com/r/megalinks/comments/6f0z7h/meta_megadownloader_and_megatools_are_no_longer/)