Answers for "how to display base64 image in 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 display base64 image in flutter"

Browse Popular Code Answers by Language