static Future<Uint8List> readFileAsByte(String filePath) async { Uri myUri = Uri.parse(filePath); File file = File.fromUri(myUri); Uint8List bytes = await file.readAsBytes(); return bytes; }