摘要:
fileURL:上传文件的路地址docfile:byte[]类型的字节流private void UploadToLibrary(string fileURL, byte[] docfile) { WebRequest request = WebRequest.Create(fileURL); request.Credentials = System.Net.NetworkCredential(ConfigurationManager.AppSettings["UserName"], ConfigurationManager.AppSettings["UserPassword"], Confi 阅读全文
摘要:
Domain:域名,地址名;folderURL:Domain+文件夹名如下就会在Domain一个文件夹 public bool CreateFolder(string folderURL) { try { WebRequest request = WebRequest.Create(folderURL); request.Credentials = System.Net.NetworkCredential(ConfigurationManager.AppSettings["UserName"], ConfigurationManager.AppSettings["UserPassword"], 阅读全文