Download a document from Sharepoint 2010 via WebClient
- October 11th, 2011
- Posted in Microsoft / CRM / SharePoint / SSRS
- Write comment
Here’s how I use the WebClient object to download a pdf from Sharepoint 2010:
string uri = "wwww.google.ca"; string filepath = "waffles.pdf"; WebClient wc = new WebClient(); wc.Credentials = loginCredentials; byte[] generatedPdf = wc.DownloadData(uri + "/" + filePath);
No comments yet.