I am supposed to get an Image from a url and convert it into byte[]
. The following is what I achieved
var webImage = new Image { Aspect = Aspect.AspectFit };
webImage.Source = ImageSource.FromUri(new Uri("http://xamarin.com/content/images/pages/forms/example-app.png"));
but now I am unable to convert the Image type to byte[]
.
Is this the correct way to approach? Any kind of help would be appreciated.