Exemplo n.º 1
0
 /// <summary>
 /// Upload a local file to the request uri.
 /// </summary>
 /// <param name="requestUri">The request uri to upload to.</param>
 /// <param name="sourceFile">The local source file to upload data from.</param>
 /// <param name="method">The HTTP method used to send the file to the resource. If null, the default is POST for http.</param>
 /// <returns>A System.Byte array containing the body of the response from the resource.</returns>
 public byte[] UploadFile(string requestUri, string sourceFile, string method)
 {
     Nequeo.Net.Http.HttpClient http = new Http.HttpClient();
     http.Connection = _connection;
     return(http.UploadFile(requestUri, sourceFile, method));
 }