Uploads a data to provided URI and returns a response data of the upload operation.
Namespace:
Rebex.Net
Assembly:
Rebex.Http (in Rebex.Http.dll)
Syntax
Visual Basic |
---|
Public Function UploadFile ( _ uri As Uri, _ filePath As String _ ) As Byte() |
C# |
---|
public byte[] UploadFile( Uri uri, string filePath ) |
Parameters
- uri
- Type: System..::..Uri
Uri to send data to.
- filePath
- Type: System..::..String
Path to a source file.
Return Value
Response data of the upload operation.Remarks
HTTP method POST is used when method is set to null (Nothing in VB).