WebClient.UploadFile Method
Namespace: Rebex.Net
Assembly: Rebex.Http.dll (version 7.0.9119)
UploadFile(String, String)
Uploads a file to provided URI and returns a response data of the upload operation.
Declaration
public byte[] UploadFile(string uri, string filePath)
Parameters
Type | Name | Description |
---|---|---|
String | uri | Uri to send data to. |
String | filePath | Path to a source file. |
Returns
Type | Description |
---|---|
Byte[] | Response data of the upload operation. |
Remarks
HTTP method POST is used when method is set to null (Nothing in VB).
UploadFile(Uri, String)
Uploads a data to provided URI and returns a response data of the upload operation.
Declaration
public byte[] UploadFile(Uri uri, string filePath)
Parameters
Type | Name | Description |
---|---|---|
Uri | uri | Uri to send data to. |
String | filePath | Path to a source file. |
Returns
Type | Description |
---|---|
Byte[] | Response data of the upload operation. |
Remarks
HTTP method POST is used when method is set to null (Nothing in VB).
UploadFile(String, String, String)
Uploads a data to provided URI and returns a response data of the upload operation.
Declaration
public byte[] UploadFile(string uri, string method, string filePath)
Parameters
Type | Name | Description |
---|---|---|
String | uri | Uri to send data to. |
String | method | HTTP method to use when sending the data. |
String | filePath | Path to a source file. |
Returns
Type | Description |
---|---|
Byte[] | Response data of the upload operation. |
Remarks
HTTP method POST is used when method is set to null (Nothing in VB).
UploadFile(Uri, String, String)
Uploads a data to provided URI and returns a response data of the upload operation.
Declaration
public byte[] UploadFile(Uri uri, string method, string filePath)
Parameters
Type | Name | Description |
---|---|---|
Uri | uri | Uri to send data to. |
String | method | HTTP method to use when sending the data. |
String | filePath | Path to a source file. |
Returns
Type | Description |
---|---|
Byte[] | Response data of the upload operation. |
Remarks
HTTP method POST is used when method is set to null (Nothing in VB).