CSharpTest.Net
Upload(String,Int64,Stream) Method
See Also  Send Feedback Download Help File
CSharpTest.Net.Library Assembly > CSharpTest.Net.Crypto Namespace > SecureTransfer.Client Class > Upload Method : Upload(String,Int64,Stream) Method

location
A string of up to 1024 bytes in length
length
The length in bytes to send from the stream
rawInput
The stream to read the data from

Glossary Item Box

Called to send a specific length of bytes to a server identified by serverKey. The transfer is a blocking call and returns on success or raises an exception. If Abort() is called durring the transfer, or if a ProgressChanged event handler raises the OperationCanceledException, the transfer is silently terminated and the method will return false.

Syntax

Visual Basic (Declaration) 
Public Overloads Function Upload( _
   ByVal location As String, _
   ByVal length As Long, _
   ByVal rawInput As Stream _
) As Boolean
C# 
public bool Upload( 
   string location,
   long length,
   Stream rawInput
)

Parameters

location
A string of up to 1024 bytes in length
length
The length in bytes to send from the stream
rawInput
The stream to read the data from

Return Value

True if the file was successfully received by the server

Requirements

Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7

See Also

Generated with Document! X 2011 by Innovasys