Click or drag to resize
StorageHelperGetByteArrayFromStream Method

Note: This API is now obsolete.

Returns byte array from input stream.

Namespace: CMS.IO
Assembly: CMS.IO (in CMS.IO.dll) Version: 10.0.0
Syntax
C#
[ObsoleteAttribute("Use CMS.Core.BinaryData.GetByteArrayFromStream(System.IO.Stream, int, long) instead.")]
public static byte[] GetByteArrayFromStream(
	Stream stream,
	int bufferSize = 65536,
	long position = 0
)

Parameters

stream
Type: System.IOStream
Input stream
bufferSize (Optional)
Type: SystemInt32
Buffer size
position (Optional)
Type: SystemInt64
Position from which the reading should start

Return Value

Type: Byte
See Also