Table of Contents

Method Base64FromStream

Namespace
DisCatSharp
Assembly
DisCatSharp.dll

Base64FromStream(Stream)

Utility function to convert a media stream into a base 64 string.

public static string Base64FromStream(Stream stream)

Parameters

stream Stream

The stream.

Returns

string

The base 64 string.

Base64FromStream(Optional<Stream?>)

Utility function to convert an optional media stream into an optional base 64 string.

public static Optional<string?> Base64FromStream(Optional<Stream?> stream)

Parameters

stream Optional<Stream>

The optional stream.

Returns

Optional<string>

The optional base 64 string.