In my app I am downloading some MP3s from the Internet using WebClient. I use the event WebClient.OpenReadCompleted to get notified when the download has completed. This works fine, but…
After the download has finished I need to save the MP3 into IsolatedStorage and this is unbelievable slow on the Windows Phone as there can be up to 50 MB to save.
I tried to look for a way to incrementally receive data to my app as its being downloaded from the web and store it right away to the IsolatedStorage. But I could not find a way to do this with WebClient.
Did I miss something, or how can I incrementally get the downloaded bytes?
I do not think it is possible with the WebClient, but you can save to file to the Isolated Storage asynchronously not blocking the UI.
If your files are up to 50 MB, you should use Background File Transfer instead of WebClient