摘要: 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 阅读全文
posted @ 2011-02-15 17:59 spring yang 阅读(409) 评论(0) 推荐(0) 编辑
摘要: 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"], 阅读全文
posted @ 2011-02-15 16:41 spring yang 阅读(352) 评论(0) 推荐(1) 编辑