title: UIImage from bytes held in NSString
body: <p>I am trying to create a UIImage from a byte array that is actually held within a NSString.</p>
  
  <p>Can someone please tell me how I can do that?</p>
  
  <p>Here is what I was thinking of doing:</p>
  
  <pre><code>NSString *sourceString = @"mYActualBytesAREinHERe=";
  //get the bytes
  const char *bytesArray = [sourceString cStringUsingEncoding:NSASCIIStringEncoding];
  //build the NSData object
  NSData *data = [NSData dataWithBytes:bytesArray length:[sourceString length]];
  //create actual image
  UIImage *image = [UIImage imageWithData:data];
  </code></pre>
  
  <p>The problem is <strong>image</strong> is always 0x0 (nil).</p>
  
  <p>Any suggestions would be appreciated.</p>
  
  <p>Thanks!</p>