Reputation: 101
I have to zipped an encrypted file by using many zipped pod file like ZipArchive ,SSZipArchive etc.The simple sqlite file has been zipped by using ZipArchive but the file that is encrypted using SQLCipher has not been zipped i dont know why can anyone tell me here is my code
Code
NSArray* path =
NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString* datbasePath = [path objectAtIndex:0];
NSString* sqlitePath = [datbasePath stringByAppendingPathComponent:@"abc.sqlite"];
NSString* zipPath = [datbasePath stringByAppendingPathComponent:@"abc.zip"];
ZipArchive* zip = [[ZipArchive alloc] init];
BOOL ret = [zip CreateZipFile2:zipPath];
ret = [zip addFileToZip:sqlitePath newname:@"abc.sqlite"];
Upvotes: 0
Views: 58