Methods
GetImageType
3 overloadsGetImageType(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 overloadsToBase64(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.