Share via


IFrontEndAdapter.ReadStream(String, Int64, Int64, Boolean) Method

Definition

Opens a stream for reading given the speficied stream path

public System.IO.Stream ReadStream (string streamPath, long offset, long length, bool isDownload = false);
abstract member ReadStream : string * int64 * int64 * bool -> System.IO.Stream
Public Function ReadStream (streamPath As String, offset As Long, length As Long, Optional isDownload As Boolean = false) As Stream

Parameters

streamPath
String

The relative path to the stream.

offset
Int64

The offset at which to append to the stream.

length
Int64

The number of bytes to append (starting at 0).

isDownload
Boolean

if set to true [is download], meaning we will open a stream on the server to read from, instead of the local machine.

Returns

Exceptions

If the data to be appended is null or empty.

Applies to