I have an img in my project (/Content/Img/myPic.png) and i need to transform it into base 64 and save it in a string variable.
Something like:
let myFile = File("/Content/Img/myPic.png");
let fileBase64 = Base64Transformer(myFile);
I don't know how to access my file, and what to use to transform it. Any idea?