String encodeByteListToBase64(List<dynamic> byteList) { Uint8List bytes = Uint8List.fromList(byteList.whereType<int>().toList()); return base64Encode(bytes); }