Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

C# WPF How to download and upload file from Sharepoint Teamsite Document Library

$
0
0

I have a Sharepoint Teamsite Document Library where I have a file stored in a folder, I want to download it, and upload a new file back to another folder on the same site.

To be precise, my site url is https://sharepoint.wsx.sg/sites/op/SitePages/Home.aspx, I would like to download the file conf.json which is located at /files/config/conf.json , then my C# WPF program will do it's thing, and upload a new file to /files/result/result.json .

How would I be able to achieve this using C# code? I read about a WebDav protocol, but couldn't really figure out how to use it, or if I need to download any packages.

All this is for a C# WPF program, upon launch it will  attempt to download conf.json and read it in to instantiate some objects, if this fails, it will just read a locally stored conf.json.

Wondering if anyone could offer an alternative method of doing so, or point me to some helpful links, would greatly appreciate it!

Thanks!



Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>