文件转 base64
static Future<String> base64EncodeFile(File file) async { List<int> bytes = await file.readAsBytes(); return base64.encode(bytes); }