Missing Data for Image
<p>I am loading an image from the internet using the following code:</p>

<p>NSURL *URL = [NSURL URLWithString:urlToImage];
NSData *data = [NSData dataWithContentsOfURL:URL options:0 error:&amp;err]];
self.img = [[UIImage alloc] initWithData:data];</p>

<p>After the above:</p>

<p>self.img == nil, err == nil</p>

<p>No error, or no img.</p>

<p>I am suspecting that the data coming from the server is being truncated.  THe data variable ends up being 850b but the image is 20K.  </p>

<p>So, is there any reason data would be truncated?</p>

<p>Thanks in advance</p>
