Answers for "how to get base64data from image flutter"

3

flutter convert file to base64

final bytes = Io.File(imageBytes.path).readAsBytesSync();

String img64 = base64Encode(bytes);
Posted by: Guest on June-06-2021
1

convert base64 flutter camera image

var image = await ImagePicker.pickImage(source: ImageSource.gallery);
    final bytes = Io.File(image.path).readAsBytesSync();
    String img64 = base64Encode(bytes);
    print (img64);
Posted by: Guest on May-26-2021

Code answers related to "how to get base64data from image flutter"

Browse Popular Code Answers by Language