Base64

@SerialName(value = "base64")
data class Base64(val data: String, val mediaType: String) : ImageSource(source)

Represents image data encoded in Base64 format. This class contains the encoded string representation of the image along with its media type information.

Constructors

Link copied to clipboard
constructor(data: String, mediaType: String)

Properties

Link copied to clipboard

The Base64 encoded string of the image.

Link copied to clipboard

The media type of the image (e.g., "image/png", "image/jpeg").