I've the following scenario.... I am trying to download a file from a site with credentials and store it in the Azure Blob Storage.
For this I've created a app. Using the credentials I am able to access the file and download the file.
For this I've used WebClient.
NetworkCredential credentials = new NetworkCredential(userName, password);
CredentialCache cCache = new CredentialCache();
cCache.Add(new Uri(fileURL), "Basic", credentials);
WebClient wClient = new WebClient();
wClient.Credentials = cCache;
wClient.DownloadFile(fileUrl, fileName);
Using the above code I was able to download the file onto the machine on the cloud. But I want to store it in the Blob Storage container.
How do I do this.?
Thx