mdejong / lzmasdk Goto Github PK
View Code? Open in Web Editor NEWlzmaSDK is an iOS port of the decoding logic from the LZMA SDK provided with 7zip
License: Other
lzmaSDK is an iOS port of the decoding logic from the LZMA SDK provided with 7zip
License: Other
Hello ,
I have a base64 string which I am converting to nsdata and that nsdata is in 7zip format , I want to decompress the data
can you point me to correct direction
How difficult would it be to add 7z archival functionality to this sdk? I know it can extract, but as far as I can tell there is no functionality for writing. Is it possible to do?
how to compress files with this sdk?
I hava a directory 7z file, when I execute your program,the directory is missing.
I want to be "/tmp/Extract7z/a/b/c/xx.mp3"
But now the results is "/tmp/Extract7z/xx.mp3"
what should i do?
I would like to unzip a 7z file with a password
How to unzip password protected .7z compressed files in ios
hello ,
I am glad that you replied , I wanted to ask one question,
I need to write my nsdata to a file . the file should be a 7z or any text file is also possible .
this is the code I have used
here I am writing my base64 decoded data in your filename.7z and after that I am using the LZMAExtractor to get its contents
NSString *tmpDirname = @"Extract7z";
NSString *archiveFilename = @"yourfilename.7z";
NSString *archiveResPath = [NSTemporaryDirectory()stringByAppendingPathComponent:archiveFilename];
[decodedData writeToFile:archiveResPath atomically:YES];
NSAssert(archiveResPath, @"can't find test.7z");
NSArray *contents = [LZMAExtractor extract7zArchive:archiveResPath tmpDirName:tmpDirname];
while extracting it is getting crashed
can you help me please
When I unzip the 7z file,the app crash!The problem here
if (InFile_Open(&archiveStream.file, archivePath))
{
PrintError("can not open input file");
return 1;
}
2015-10-23 09:08:53.370 XHEnglishBrushStudent[14250:2712290] ---downloadUpdate>>>DownloaProgress,45 $$$ DownloaUnique,44 $$$ DownloadTitle,正在解压数据文件...
2015-10-23 09:08:53.378 XHEnglishBrushStudent[14250:2712290] Error: Error Domain=NSCocoaErrorDomain Code=4 "未能完成操作。(“Cocoa”错误 4。)" UserInfo=0x1742f2f00 {NSSourceFilePathErrorKey=/var/mobile/Containers/Data/Application/2D4AE180-C3B7-41C2-9F7A-566700DD876C/Documents/xuehai/2747/databases/ep.xh.yystwteach/book_exam44.100fen, NSUserStringVariant=(
Move
), NSDestinationFilePath=/var/mobile/Containers/Data/Application/2D4AE180-C3B7-41C2-9F7A-566700DD876C/Documents/xuehai/2747/databases/ep.xh.yystwteach/book_exam44.7z, NSFilePath=/var/mobile/Containers/Data/Application/2D4AE180-C3B7-41C2-9F7A-566700DD876C/Documents/xuehai/2747/databases/ep.xh.yystwteach/book_exam44.100fen, NSUnderlyingError=0x174442a90 "未能完成该操作。No such file or directory"}
2015-10-23 09:08:53.379 XHEnglishBrushStudent[14250:2712290] cd to /var/mobile/Containers/Data/Application/2D4AE180-C3B7-41C2-9F7A-566700DD876C/Documents/xuehai/2747/databases/ep.xh.yystwteach/tmp
/--------------------------------------------bt message-------------------------------------------------------------------/
do7z_extract_entry(archivePath=0x000000017018d5e0, archiveCachePath=0x0000000170342a20, entryName=0x0000000000000000, entryPath=0x0000000000000000, fullPaths=1) + 160 at 7zMain.c:558 frame #1: 0x0000000100390ae0 XHEnglishBrushStudent
+[LZMAExtractor extract7zArchive:dirName:preserveDir:](self=0x00000001007b1f48, _cmd=0x00000001006af0e2, archivePath=0x0000000144e8eaf0, dirName=0x0000000144e6f450, preserveDir=true) + 2880 at LZMAExtractor.m:138-[SevenZipHelper unZip:archiveDir:](self=0x0000000170018ff0, _cmd=0x00000001006ba491, file=0x0000000144e8eaf0, archiveDir=0x0000000144e6f450) + 124 at SevenZipHelper.m:31 frame #3: 0x00000001004eeb38 XHEnglishBrushStudent
__45-[ExamDownloadManager execDBDataFileCompress]_block_invoke(.block_descriptor=) + 560 at ExamDownloadManager.m:445_dispatch_call_block_and_release + 24 frame #5: 0x0000000100c30f94 libdispatch.dylib
_dispatch_client_callout + 16_dispatch_queue_drain + 780 frame #7: 0x0000000100c342c4 libdispatch.dylib
_dispatch_queue_invoke + 132_dispatch_root_queue_drain + 772 frame #9: 0x0000000100c40248 libdispatch.dylib
_dispatch_worker_thread3 + 132A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.