In The Hand - .NET Components for Mobility
UploadFile Method (address, method, fileName)
NamespacesInTheHand.NetWebClientUploadFile(Uri, String, String)
Uploads the specified local file to the specified resource, using the specified method.
Declaration Syntax
C#Visual Basic
public byte[] UploadFile(
	Uri address,
	string method,
	string fileName
)
Public Function UploadFile ( _
	address As Uri, _
	method As String, _
	fileName As String _
) As Byte()
Parameters
address (Uri)
The URI of the resource to receive the data.
method (String)
The HTTP method used to send the data to the resource. If null, the default is POST for http and STOR for ftp.
fileName (String)
The file to send to the resource.
Return Value
A Byte array containing the body of the response from the resource.

Assembly: InTheHand.Net (Module: InTheHand.Net) Version: 2.1.0.0