$base 64 encodeImage

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
m (LillyT moved page $base64EncodeImage to $base 64 encodeImage)
 

Latest revision as of 18:36, 13 November 2017

This function will base 64 encode the given image

The function is an Image function.

Input Image File: The image being encoded.

[edit] 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