WebClient.UploadData Method
Namespace: Rebex.Net
Assembly: Rebex.Http.dll (version 7.0.9048)
UploadData(String, Byte[])
Uploads a data to provided URI and returns a response data of the upload operation.
Declaration
public byte[] UploadData(string uri, byte[] data)
Parameters
Type | Name | Description |
---|---|---|
String | uri | Uri to send data to. |
Byte[] | data | Data to send to provided URI. |
Returns
Type | Description |
---|---|
Byte[] | Response data of the upload operation. |
Remarks
HTTP method POST is used.
UploadData(Uri, Byte[])
Uploads a data to provided URI and returns a response data of the upload operation.
Declaration
public byte[] UploadData(Uri uri, byte[] data)
Parameters
Type | Name | Description |
---|---|---|
Uri | uri | Uri to send data to. |
Byte[] | data | Data to send to provided URI. |
Returns
Type | Description |
---|---|
Byte[] | Response data of the upload operation. |
Remarks
HTTP method POST is used.
UploadData(String, String, Byte[])
Uploads a data to provided URI and returns a response data of the upload operation.
Declaration
public byte[] UploadData(string uri, string method, byte[] data)
Parameters
Type | Name | Description |
---|---|---|
String | uri | Uri to send data to. |
String | method | HTTP method to use when sending the data. |
Byte[] | data | Data to send to provided URI. |
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).
UploadData(Uri, String, Byte[])
Uploads a data to provided URI and returns a response data of the upload operation.
Declaration
public byte[] UploadData(Uri uri, string method, byte[] data)
Parameters
Type | Name | Description |
---|---|---|
Uri | uri | Uri to send data to. |
String | method | HTTP method to use when sending the data. |
Byte[] | data | Data to send to provided URI. |
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).