Skip to content
This repository was archived by the owner on Jul 5, 2024. It is now read-only.
This repository was archived by the owner on Jul 5, 2024. It is now read-only.

TakePhotoAsync lets me make a photo but MediaFile != null and MediaFile.GetStream().Lenght = 0 #958

@AlexanderPerreman

Description

@AlexanderPerreman

We still use an older version of Xamarin and the dll.
We plan on updating the whole system soon but have the following issue.

TakePhotoAsync lets me make a photo but MediaFile != null and MediaFile.GetStream().Lenght = 0

We use Medical Android devices. these still use Android 8.1.
Now we bought a new device using Android 11

Bug Information

Version Number of Plugin: 2.7.0.50-beta
Device Tested On: Datalogic Memor10 (Android 8.1) and Datalogic Memor11 (Android 11)
Version of VS: 2015
Version of Xamarin: 2.3.4.270

Steps to reproduce the Behavior

Expected Behavior

TakePhotoAsync lets me make a photo but MediaFile != null and MediaFile.GetStream().Lenght larger than 0 containing photo data

Actual Behavior

TakePhotoAsync lets me make a photo but MediaFile != null and MediaFile.GetStream().Lenght = 0

Code snippet

var takenphoto = await CrossMedia.Current.TakePhotoAsync(new Plugin.Media.Abstractions.StoreCameraMediaOptions
{
SaveToAlbum = false,
CompressionQuality = 50,
AllowCropping = true,
Name = "ImplantPhoto"
//PhotoSize = PhotoSize.Medium
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions