How to save image data to sqflite database in flutter for persistence
问题 I'm building a Flutter app where I would like to keep the data offline. I'm capturing an image using the camera or gallery image picker and able to store that image into a File image variable. File _avatarImg; void _getImage(BuildContext context, ImageSource source) { ImagePicker.pickImage( source: source, maxWidth: 400.0, maxHeight: 400.0, ).then((File image) { _avatarImg = image; }); } This works perfectly however my question is, how would I go about storing this image for persistence?