Reputation: 13
I want to download an image from a SharePoint site but our SharePoint site is hosted on Windows Azure so it may need authentication. How can I download the image using C#?
Upvotes: 0
Views: 817
Reputation: 377
You can download an image by using the WebClient in c#. This webclient has a "DownloadFile" function that accepts a url. The webclient also has a "Credentials" property where you can assign the needed credentials.
Upvotes: 1