Skip to main content

Base64

Namespace

Namespace in the Lens Scripting API.

  • Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.

Platform details

  • Snapchat — Fully supported.

  • SPECS — Fully supported.

  • Camera Kit Web — Fully supported.

  • Camera Kit Mobile — Fully supported.

Functions

FunctionDescription
decodeDecode a Base64 string to a byte array (Uint8Array).
decodeTextureAsyncDecode a texture from Base64, asynchronously.
encodeEncode a byte array (Uint8Array) to Base64 string.
encodeStringEncode a string to Base64 format.
encodeTextureAsyncEncode a texture according to Base64 encoding algorithm, asynchronously.