VDocs.NET
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.

VDocs.NET
The .NET Word Document Library

Generate Word
documents.
Not XML.

Create professional documents in .NET without the complexity of OpenXML or Word Interop.

Reset Password

Enter your email and we'll send you a link to reset your password.

Remember your password? Sign in