I have service url : please check it, It’s return json string.
I don’t know how to call this url by using C#
Then. By the link, you can see "href" in json data. It’s have .png url. I would like to save that image to my local disk.
Question
-
How to get and read json data from this service
-
How to save image from url to local disk
Using Data Contracts and
DataContractJsonSerializer:References Required:
Data Contract
Putting it all together and downloading the file:
Pull the JSON String from your URL – Deserialize the object and download your image.