Base64Loader

An ImageBitmapLoader that decodes Base64-encoded image strings into ImageBitmap.

The input string can optionally include a data URI prefix (e.g., data:image/png;base64,) which will be automatically stripped before decoding.

Throws

when the Base64 string is padded incorrectly or contains extra symbols after the padding.

Functions

Link copied to clipboard
open suspend override fun load(input: String): ImageBitmap