Class MediaTool
- Namespace
- DisCatSharp
- Assembly
- DisCatSharp.dll
Tool to detect media formats and convert from binary data to base64 strings.
public sealed class MediaTool : IDisposable
- Inheritance
-
MediaTool
- Implements
- Inherited Members
Constructors
- MediaTool(Stream)
Creates a new media tool from given stream.
Properties
- SourceStream
Gets the stream this tool is operating on.
Methods
- Base64FromStream(Optional<Stream?>)
Utility function to convert an optional media stream into an optional base 64 string.
- Base64FromStream(Stream)
Utility function to convert a media stream into a base 64 string.
- Dispose()
Disposes this media tool.
- GetBase64()
Converts this media into base64 data format string.
- GetFormat()
Detects the format of this media.