convert bytes array to base64 string
static String toBase64(Uint8List buffer) { final str = base64Encode(buffer); return str; }