Skip to content

IsBase64Image Method ​

Definition ​

  • Namespace: JASE.Extensions
  • Assembly: JASE.Media.dll

Overloads ​

NameDescription
bool IsBase64Image(string input)Checks if the string content is valid Base64 and is detected to contain an image.
bool IsBase64Image(string input, out ImageFormat format)Checks if the string content is valid Base64 and is detected to contain an image.

bool IsBase64Image(string input) ​

csharp
bool IsBase64Image(string input)

Checks if the string content is valid Base64 and is detected to contain an image.

Returns ​

Boolean true if input string appears to be a Base64 encoded image, otherwise false

bool IsBase64Image(string input, out ImageFormat format) ​

csharp
bool IsBase64Image(string input, out ImageFormat format)

Checks if the string content is valid Base64 and is detected to contain an image.

Parameters ​

NameDescription
formatOutput of the detected image type
inputstring value to process

Returns ​

Boolean true if input string appears to be a Base64 encoded image, otherwise false