title: Size of UIImage prepared from downloaded NSData shows 0,0 even though data length is >0
body: <p>On server an image is uploaded which is either jpeg, bmp or png.</p>
  
  <p>When the image is downloaded then  NSData shows its length to be > 0 like 173803 etc.</p>
  
  <p>However, when I make UIImage out of this data via the following method and check its size then it comes 0,0. </p>
  
  <pre><code>UIImage *receivedImage = [UIImage imageWithData:receivedNSData];
  NSLog(@"Image.size = %@",[NSValue valueWithCGSize:receivedImage.size].description]);
  
  //output of log
  // Image.size = NSSize{0,0}
  </code></pre>
  
  <p>ImageView also doesn't display the image, when set on it. Other images locally converted to NSData and then back to UIImage will display in the imageView. </p>
  
  <p>Can anyone suggest me a solution to this ?</p>
  
  <p>Edit 1 : Yes, I am receiving the data properly. I am getting data.length to be greater than zero like 1789938, etc. as I mentioned above initially.</p>