title: Convert data from URL into Image in iPhone
body: <p>Here I'm working for static URL.</p>
  
  <p>My Code :</p>
  
  <pre><code>NSURL *url = [[NSURL alloc] initWithString:@"http://cns.bu.edu/~lgrady/diagonal_line_nobreak_seg.jpg"];
  
  NSData *myData = [NSData dataWithContentsOfURL:url];
  
  img.image = [UIImage imageWithData:myData];
  </code></pre>
  
  <p>So, I can see image in ImageView.</p>
  
  <p>But, While passing internal web-service URL.</p>
  
  <p>And I'm getting data for Image in bytes from url instead of Image like below:</p>
  
  <pre><code>{"AppBanner":"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUg.....VORK5CYII="}
  </code></pre>
  
  <p>But with help of above code, I can't convert this data into Image.</p>
  
  <p>So how can I convert this data into image ?</p>
  
  <p>Any Solution ?</p>
  
  <p>Thanks in advance.</p>