private bool CreateNetcomFile(string ServerAddress, string docUniqueString) { string docName = path + "\\" + txtDocumentName.Text + "_" + docUniqueString; ZipInfo zip = new ZipInfo(path + "\\" + txtDocumentName.Text + ".zip"); zip.PackFiles(null, objFiles, null); if (System.IO.File.Exists(zip.FullName)) { System.IO.FileInfo objFile = new System.IO.FileInfo(zip.FullName); objFile.MoveTo(docName + ".netcom"); System.Net.WebClient client = new System.Net.WebClient(); try { client.UploadFile(ServerAddress, "POST", docName + ".netcom"); } catch (Exception ex) { MessageBox.Show(ex.Message); } } }
<system.web></system.web>
<httpruntime maxrequestlength="150000" />
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)