fileToBase64 static method

String fileToBase64(
  1. File imgFile
)

将图片file转化为base64

Implementation

static String fileToBase64(File imgFile) {
	return base64Encode(imgFile.readAsBytesSync());
}