title: How to get Size of UIImage in Bytes in iOS 4.0+?
body: <p>I am trying to pick an image from the photo library or from the camera.<br>The delegate method:</p>
  
  <pre><code>- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)image editingInfo:(NSDictionary *)editingInfo
  </code></pre>
  
  <p>Gives me the <code>UIImage</code> object. I need to find the size of the image in <code>bytes</code> for my application.</p>
  
  <p>Is there any way I can get the file type of the image and also the size in the bytes?</p>
  
  <p>Any kind of help would be highly appreciated.</p>
  
  <p>Thanks in advance </p>