Every application uses data in some way or another. In some instances, you may require the ability to manipulate individual bytes of data.
NSData encapsulates these raw bytes to allow for easy manipulation using built-in methods.
With iOS 7,
NSData now adds support for Base64 encoding and decoding; a group of ACSII format binary-to-text encoding schemes. These schemes are most commonly used to transfer data between media that only support text-based data transfer. Encoding images from JSON-based responses from a web API is the most common use for these schemes.
- (id)initWithBase64EncodedData:(NSData *)base64Data options:(NSDataBase64DecodingOptions)options; - (NSData *)base64EncodedDataWithOptions: (NSDataBase64EncodingOptions)options; - (id)initWithBase64EncodedString:(NSString *...