SyntaxFix
Write A Post
Hire A Developer
Questions
There is a Linux command for that: base64
base64 DSC_0251.JPG >DSC_0251.b64
To assign result to variable use
test=`base64 DSC_0251.JPG`