We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi I am trying to unzip password protected file. But it gives me expections here is my sample code
OZZipFile *unzipFile= [[OZZipFile alloc] initWithFileName:filePath mode:OZZipFileModeUnzip];
[unzipFile goToFirstFileInZip]; BOOL keepReading = YES; @try { while(keepReading){ OZFileInZipInfo *fInfo = [unzipFile getCurrentFileInZipInfo]; OZZipReadStream *readStream = [unzipFile readCurrentFileInZipWithPassword:@"password"]; NSMutableData *data = [[NSMutableData alloc] initWithLength:fInfo.length]; [readStream readDataWithBuffer:data]; [readStream finishedReading]; NSString* unzippedFilename = [self validFilePathForFilename:fInfo.name atPath:path]; [data writeToFile:unzippedFilename atomically:YES]; keepReading = [unzipFile goToNextFileInZip]; } } @catch (NSException *exception) { NSLog(@"unzip file %@ failed:%@", filePath, exception.reason); } @finally { [unzipFile close]; }
Can you please let me know whats problem
The text was updated successfully, but these errors were encountered:
Were you able to solve this?
Sorry, something went wrong.
No branches or pull requests
Hi I am trying to unzip password protected file. But it gives me expections
here is my sample code
OZZipFile *unzipFile= [[OZZipFile alloc] initWithFileName:filePath mode:OZZipFileModeUnzip];
Can you please let me know whats problem
The text was updated successfully, but these errors were encountered: