readFileDataAsBase64 function
Reads file
as Base64 String.
Implementation
Future<String?> readFileDataAsBase64(File file) async {
var data = await readFileDataAsArrayBuffer(file);
return data != null ? data_convert.base64.encode(data) : null;
}