Код: Выделить всё
< /code>
Media_Caputuredprivate async void cameraView_MediaCaptured(object sender, Xamarin.CommunityToolkit.UI.Views.MediaCapturedEventArgs e)
{
var image = e.Image;
imageTaken = image;
imageHolder.Source = image;
fileContr.UploadFileAsync(image);
}
< /code>
But I am having a diffucult time understanding how.
I tried storing it in a temporary Xamarin image field which I could not get to work and try converting it directly, I am sure I am missing a very simple function or method in the documenation somewhere.
Подробнее здесь: https://stackoverflow.com/questions/755 ... -or-stream