Method Base64FromStream
- Namespace
- DisCatSharp
- Assembly
- DisCatSharp.dll
Base64FromStream(Stream)
Utility function to convert an image stream into a base 64 string.
public static string Base64FromStream(Stream stream)
Parameters
stream
StreamThe stream.
Returns
- string
The base 64 string.
Base64FromStream(Optional<Stream?>)
Utility function to convert an optional image stream into an optional base 64 string.
public static Optional<string?> Base64FromStream(Optional<Stream?> stream)