Uploads a stream into the specified remote location, without performing audio codec conversion.

Namespace: ININ.IceLib.Connection
Assembly: ININ.IceLib (in ININ.IceLib.dll) Version: 0.0.0.0 (22.3.0.218)

Collapse imageSyntax

C#
public bool UploadFile(
	string remoteFileName,
	BinaryReader reader,
	Object userState
)
Visual Basic
Public Function UploadFile ( _
	remoteFileName As String, _
	reader As BinaryReader, _
	userState As Object _
) As Boolean

Parameters

remoteFileName
Type: System..::..String
The remote file name.
reader
Type: System.IO..::..BinaryReader
The reader.
userState
Type: System..::..Object
An object representing state for all events fired during this operation.

Return Value

trueTruetruetrue (True in Visual Basic) if the upload succeeded, falseFalsefalsefalse (False in Visual Basic) if it was cancelled.

Collapse imageRemarks

Note that some types of server files are periodically purged for space reasons, so an uploaded file may not exist for all time in the future.

Collapse imageExceptions

ExceptionCondition
System..::..ArgumentNullExceptionA parameter is nullNothingnullptra null reference (Nothing in Visual Basic).
System..::..ArgumentExceptionThe remoteFileNameThe request timed out while waiting for a response.The Session does not have a valid connection.The Session has been disposed. length is zero.

Collapse imageVersion Information

Supported for IC Server version 2015 R1 and beyond.
For 4.0, supported for IC Server version 4.0 GA and beyond.

Collapse imageSee Also