Convert an Image to base64 on the Command Line
October 2021
Use the base64 command with the > filename operator to convert an image to base64 and save the string in a file:
You can also export it into an environmental variable for use in other scripts
end of line