Answers for "flutter image base64encode"

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

Browse Popular Code Answers by Language