Click or drag to resize
BinaryDataGetByteArrayFromStream Method
Returns byte array from input stream.

Namespace: CMS.Core
Assembly: CMS.Core (in CMS.Core.dll) Version: 11.0.0
Syntax
C#
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, by default 64kB
position (Optional)
Type: SystemInt64
Position from which the reading should start

Return Value

Type: Byte
See Also