title: Convert NSData [UIImage] to a NSString
body: <p>I am aware this question has been asked several times, but I was unable to find a definate answer that would best fit my situation.</p>
  
  <p>I want the ability to have the user select an image from the library, and then that image is converted to an NSData type. I then have a requirement to call a .NET C# webservice via a HTTP get so ideally I need the resulting string to be UTF8 encoded.</p>
  
  <p>This is what I have so far:</p>
  
  <pre><code>NSData *dataObj = UIImageJPEGRepresentation(selectedImage, 1.0);
      [picker dismissModalViewControllerAnimated:YES];
      NSString *content =  [[NSString alloc] initWithData:dataObj encoding:NSUTF8StringEncoding];
      NSLog(@"%@", content);
  </code></pre>
  
  <p>The NSLog statement simply produces output as:</p>
  
  <pre><code>2009-11-29 14:13:33.937 TestUpload2[5735:207] (null)
  </code></pre>
  
  <p>Obviously this isnt what I hoped to achieve, so any help would be great.</p>
  
  <p>Kind Regards</p>