VDocs.NET
HomeAPI Reference
Back to DOM

DOM.Extensions.StreamExtension

Namespace: DOM.Extensions

5 members

Methods

GetImageType

3 overloads
GetImageType(Stream stream)

Determines the image type based on the content of the stream.

Parameters

stream
The input stream to analyze.

Returns

The detected image type.

GetImageType(MemoryStream stream)

Determines the image type based on the content of the stream.

Parameters

stream
The input stream to analyze.

Returns

The detected image type.

GetImageType(FileStream stream)

Determines the image type based on the content of the file stream.

Parameters

stream
The input file stream to analyze.

Returns

The detected image type.

ToBase64

2 overloads
ToBase64(Stream stream)

Converts the content of the stream to a base64-encoded string.

Parameters

stream
The input stream to convert.

Returns

A base64-encoded string representing the stream content.

ToBase64(FileStream stream)

Converts the content of the file stream to a base64-encoded string.

Parameters

stream
The input file stream to convert.

Returns

A base64-encoded string representing the file stream content.