protected override void OnActivityResult(int requestCode, Result resultCode, Intent data) { base.OnActivityResult(requestCode, resultCode, data); if (resultCode == Result.Ok) { _imageSection = FindViewById<ImageView>(Resource.Id.myImageView); _imageSection.SetImageURI(data.Data); byte[] bytes; using (var imageData = _imageSection.AsJPEG()) { bytes = new byte[imageData.Length]; Marshal.Copy(imageData.Bytes, bytes, 0, Convert.ToInt32(imageData.Length)); } // await _uploader.UploadPhoto(bytes, "jpg"); } }