Save

StreamContainer.Save method (1 of 6)

Saves (copies) the stream’s data to the specified stream.

public virtual void Save(Stream destinationStream, int bufferSize, long length)
Parameter Type Description
destinationStream Stream The stream to save the data to.
bufferSize Int32 The buffer size. By default ReadWriteBytesCount value is used.
length Int64 The stream data length to copy. By default the length is set to Length value.

See Also


StreamContainer.Save method (2 of 6)

Saves (copies) the stream’s data to the specified stream. Uses default buffer size ReadWriteBytesCount and stream Length value.

public virtual void Save(Stream destinationStream)
Parameter Type Description
destinationStream Stream The stream to save the data to.

See Also


StreamContainer.Save method (3 of 6)

Saves (copies) all the stream’s data to the specified stream. Uses stream Length value.

public virtual void Save(Stream destinationStream, int bufferSize)
Parameter Type Description
destinationStream Stream The stream to save the data to.
bufferSize Int32 The buffer.

See Also


StreamContainer.Save method (4 of 6)

Saves (copies) the stream’s data to the specified stream. Uses default buffer size ReadWriteBytesCount and stream Length value.

public virtual void Save(string filePath)
Parameter Type Description
filePath String The file path to save the stream data to.

See Also


StreamContainer.Save method (5 of 6)

Saves (copies) the stream’s data to the specified stream. Uses stream Length value.

public virtual void Save(string filePath, int bufferSize)
Parameter Type Description
filePath String The file path to save the stream data to.
bufferSize Int32 The buffer size. By default ReadWriteBytesCount value is used.

See Also


StreamContainer.Save method (6 of 6)

Saves (copies) the stream’s data to the specified stream.

public virtual void Save(string filePath, int bufferSize, long length)
Parameter Type Description
filePath String The file path to save the stream data to.
bufferSize Int32 The buffer size. By default ReadWriteBytesCount value is used.
length Int64 The stream data length to copy. By default the length is set to Length value.

See Also