QUESTION:
I would like to get the image in base64 once the user choosed that (before submitting the form). Something like:
var file = document.getElementByTagName('file').getAsBase64();