I am working on a Xamarin Application which is part of another project I've been working on, an API
So the API sends profile picture to the Xamarin application as a byte[], but the Xamarin app is not displaying it.
So far I've tried a number of options from the different platforms including here and still it's not working
I've tried converting the image to a base 64 string and then converting it back to a byte[] before displaying it using
imageProfilePic.Source = ImageSource.FromStream(() => new MemoryStream(base64Stream.ToArray())); Among other options I've tried is creating the memory stream object using the array directly, I even tried returning the image as a base 64 string then converted it to byte array and use to create a new MemoryStream to display the image.
I'm starting to think there's a serious problem with Xamarin.
Is there a way I can return just an image URL from the API, I think it would be the better option,
I am storing the image in the database as byte[] array, using EF Core and MS SQL