How to encode and decode Files as Base64 in Cocoa / Objective-C
问题 I am currently trying to get a small soap client to work, which includes to send a certificate file within the xml of the request. I have no trouble getting the file into an NSData object - but then I have to convert it to some Base64 String. Environment is Mac OSX, Xcode 4.3. I have found a lot of older posting dealing with that - but the best I found was some code that made use of OpenSSL libs and where containing loads of deprecated methods. So, my question is as follows: Is there a better