Closed LeftTwixWand closed 9 months ago
I need to check this converter from MAUI world: https://learn.microsoft.com/en-us/dotnet/communitytoolkit/maui/converters/byte-array-to-image-source-converter
Found a workaround by using default IValueConverter
and IRandomAccessStream
related commit: 8e62e8e
At the current moment the image conversion works using
ImageConverter
class with async method to convert image from byte array to ImageSource. It's not the best coise to perform such conversion at the mapping time.So, it would be better to implement somehow async ValueConverter and convert bytes to ImageSource on Presentation layer side. And one of such cases I found on the Stack Overflow: https://stackoverflow.com/questions/15003827/async-implementation-of-ivalueconverter