public UploadFile ( string address, string method, string fileName ) : byte[] | ||
address | string | |
method | string | |
fileName | string | |
리턴 | byte[] |
public byte[] UploadFile(string address, string method, string fileName) { throw null; }
public byte[] UploadFile(System.Uri address, string method, string fileName) { throw null; }
WebClient::UploadFile ( System address, string fileName ) : byte[] | |
WebClient::UploadFile ( System address, string method, string fileName ) : byte[] | |
WebClient::UploadFile ( string address, string fileName ) : byte[] |
private static void UploadToErpHostForSupport(string filename) { WebClient myWebClient = new WebClient (); try { myWebClient.QueryString ["COMP"] = ((GlobalvarsApp)Application.Context).COMPANY_CODE; myWebClient.QueryString ["BRAN"] = ((GlobalvarsApp)Application.Context).BRANCH_CODE; myWebClient.QueryString ["USER"] = ((GlobalvarsApp)Application.Context).USERID_CODE; if (filename.ToLower().Contains(".zip")) { //upload zip db file and extract byte[] responseArray = myWebClient.UploadFile (@"http://www.wincomcloud.com/UploadDb/uploadDbEx.aspx", filename); }else{ //upload db file byte[] responseArray = myWebClient.UploadFile (@"http://www.wincomcloud.com/UploadDb/uploadDb.aspx", filename); } } catch { } finally{ try{ File.Delete (filename); }catch {} } }