ISupportBinaryImageExtensionsCopyBinaryImageToStream Method

Copies the binary image of the specified ISupportBinaryImage to the provided Stream.

Definition

Namespace: Gemstone.IO.Parsing
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.166 -- Release Build+d3cb24a90fe44346300dfbb17444d7b350f42d79
public static void CopyBinaryImageToStream(
	this ISupportBinaryImage imageSource,
	Stream stream,
	bool clearArray = false
)

Parameters

imageSource  ISupportBinaryImage
The source object implementing ISupportBinaryImage whose binary image will be copied.
stream  Stream
The Stream to which the binary image will be written.
clearArray  Boolean  (Optional)
Clears any rented buffers of their contents so that a subsequent consumer will not see the previous consumer's content. If false, default, the array's contents are left unchanged.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ISupportBinaryImage. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Exceptions

ArgumentNullExceptionThrown if imageSource or stream is null.

See Also