title: Base64 vs NSPropertyListSerialization
body: <p>I need to encode my image into text. 
  And I found this class for that:
  <a href="https://github.com/nicklockwood/Base64" rel="nofollow">Base64 for iOS with ARC</a></p>
  
  <p>When I try to encode my image I see that <code>NSPropertyListSerialization</code> creates absolutely the same string as base64 does. Is it the right way to create base64 String with <code>NSPropertyListSerialization</code> or am I missing something?</p>
  
  <p>Base64:</p>
  
  <pre><code>[data base64EncodedString];
  </code></pre>
  
  <p>NSPropertyListSerialization:</p>
  
  <pre><code>[NSString stringWithUTF8String:[[NSPropertyListSerialization dataWithPropertyList:data format:NSPropertyListXMLFormat_v1_0 options:0 error:nil] bytes]]
  </code></pre>