$base 64 encodeImage
From UBot Studio
(Difference between revisions)
Line 7: | Line 7: | ||
== Example == | == Example == | ||
<pre> | <pre> | ||
− | set(#encoded image,$ | + | set(#encoded image,$base 64 encode image("C:\\Users\\Downloads\\Capture.JPG"),"Global") |
</pre> | </pre> | ||
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.
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.....