Asynchronously converts a file to a base 64 string
The file to convert.
A promise that resolves to the encoded base 64 string.
If the file reader gives an error.
Asynchronously converts a file to a base 64 string