$base 64 encodeImage

From UBot Studio
(Redirected from $base 64 encode image)
Jump to: navigation, search

This function will base 64 encode the given image

The function is an Image function.

Input Image File: The image being encoded.

Example

set(#encoded image,$base 64 encode image("C:\\Users\\Downloads\\Capture.JPG"),"Global")

Running the script will return the base64 code of the given image.

data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAeAB4AAD/4RDsRXhpZgAATU0AKgAAAAgABAE7AAIAAAALAAAISodpAAQAAAABAAAIVpydAAEAAAAWAAAQzuocAAcAAAgMAAAAPgAAAAAc6gAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAA.....
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox