How to get image and show in iphone from json webservice response. as i get response very well.
this is part of my web service response:
{
"Campaign Id" = 215;
"Campaign Name" = "Denivit 2in1 Extreme White";
"Final Report Link" = "https://www.buzzador.com/report2/index.php?sid=29282&token=1731692044";
"Flash Report Count" = 1;
"Last Date Registration" = "2008-05-18";
"Link for checking delivery status" = "";
"Product image" = "denivit.jpg";
Status = reported;
},
In which product image contain image url….now how to print this image in iPhone?
You will have to download the image using
Now you can use assign the
imageto anUIImageViewobject. Since this is a blocking operation, you should to start this in a background thread and send the UI updates back to the main thread.If you are interested in parsing
JSONfiles, there are some good libraries out there one of which isTouchJSON.