StaticdecodeDecode a Base64 string to a byte array (Uint8Array).
StaticdecodeStaticencodeEncode a byte array (Uint8Array) to Base64 string.
StaticencodeEncode a string to Base64 format.
StaticencodeEncode a texture according to Base64 encoding algorithm, asynchronously.
Handles encoding and decoding images and textures into Base64 format, commonly used to embed images in JSON or other text-based formats.
Example