The application is closing when selecting a file with FilePicker.

Erol ARI 0 Reputation points
2023-11-20T13:14:18.96+00:00
                var file = await FilePicker.PickAsync();
                if (file != null)
                {
                    //var fileStream = await file.OpenReadAsync();
                    //var fileBytes = new byte[fileStream.Length];
                    //await fileStream.ReadAsync(fileBytes, 0, (int)fileStream.Length);
                }

Xamarin.Forms Version : 5.0.0.2622

Xamarin.Essentials : 1.8.0

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,334 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.