GetStream from Image

Jassim Al Rahma 1,616 Reputation points
2023-04-10T15:44:51.2133333+00:00

Hi, How can I GetStream from .NET MAUI Image in code-behind like this:

var imageContent = new StreamContent(await ImageProfile.GetStream());

Thanks, Jassim

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,142 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.