📅  最后修改于: 2022-03-11 14:58:42.487000             🧑  作者: Mango
var image = await ImagePicker.pickImage(source: ImageSource.gallery);
final bytes = Io.File(image.path).readAsBytesSync();
String img64 = base64Encode(bytes);
print (img64);