Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

How to deal with an image received from GET request

$
0
0

Hi

I am new to Xamarin forms and I would like to ask if anyone knows how to deal with an image received from a GET request shown below

var request = new RestRequest(command, Method.GET);
try
{
var response = await client.Execute(request);
Debug.WriteLine(response.ContentType);
return response.Data.ToString();
}
catch (Exception e)
{
var result = JsonConvert.SerializeObject(new {Success = false, Message = e.Message});
return result;
}
the content type received is "image/png" I would like to view this image in an image object of Xamarin forms


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>