Objective-C
Objective-C
Decode Base64 to Zip File
See more Base64 Examples
Shows how to decode a baes64 string that is the encoded representation of the bytes that make up a .zip archive. Decodes the base64 and writes the .zip file.Chilkat Objective-C Downloads
#import <NSString.h>
#import <CkoBinData.h>
BOOL success = NO;
NSString *b64 = @"UEsDBBQA ... AAALgQAAAAA";
CkoBinData *zipData = [[CkoBinData alloc] init];
success = [zipData AppendEncoded: b64 encoding: @"base64"];
success = [zipData WriteFile: @"qa_output/out.zip"];
if (success != YES) {
NSLog(@"%@",@"failed to write Zip file.");
return;
}