You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used FileSystem.OpenAppPackageFileAsync to get a Stream from a MauiImage. On iOS all works is fine. But in Android throws System.IO.FileNotFoundException
Steps to Reproduce
Create a new .NET Maui project
Put this code in OnCounterClicked event:
`
private async void OnCounterClicked(object sender, EventArgs e)
{
var stream = await FileSystem.OpenAppPackageFileAsync("dotnet_bot.png");
using var memoryStream = new MemoryStream();
await stream.CopyToAsync(memoryStream);
}
Description
I used FileSystem.OpenAppPackageFileAsync to get a Stream from a MauiImage. On iOS all works is fine. But in Android throws System.IO.FileNotFoundException
Steps to Reproduce
Create a new .NET Maui project
Put this code in OnCounterClicked event:
`
`
3. Debug
Link to public reproduction project repository
https://github.com/mapsouza/FileNotFoundImage
Version with bug
8.0.100 SR10
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
No response
Affected platforms
Android
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
The text was updated successfully, but these errors were encountered: