Feature request: NSData base64 encoding and decoding

Originator:cedric.luthi
Number:rdar://9896929 Date Originated:04-Aug-2011 06:41 PM
Status:Duplicate/3093626 Resolved:
Product:iPhone SDK Product Version:5.0b4
Classification:Feature (New) Reproducible:Not Applicable
 
Summary:
Please add base64 encoding and decoding capabilities to NSData.


Regression:
Neither Mac OS nor iOS provides a NSData API for base64 encoding and decoding.


Notes:
The NSData class has two undocumented methods: -(NSData *)[NSData initWithBase64Encoding:(NSString *)base64Text] and -(NSString *)[NSData base64Encoding] which respectively decode and encode base64. It would be very nice to have these two methods publicly documented.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!