Click or drag to resize

DbCommandImageAccessorCreateStreamFromDatabaseObject Method

Creates a stream from the object obtained from the database. If the object is a byte array, it is attached to a MemoryStream. If the object is a string, it is interpreted as a filename and an open FileStream to the file is returned. If the object is null or not able to be interpreted as a stream, this method will throw.

Namespace:  Atalasoft.Imaging.ImageSources.Data
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
protected virtual Stream CreateStreamFromDatabaseObject(
	Object o
)

Parameters

o
Type: SystemObject
An object that represents an image stream.

Return Value

Type: Stream
An open stream that contains an image.
See Also