Coder Social home page Coder Social logo

lzmasdk's People

Contributors

haraguroicha avatar mdejong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lzmasdk's Issues

extracting the contents from nsdata

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

Creating 7z archive

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?

Unzip directory 7z file, the directory is missing

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?

lzma decompression

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 file,the app crash!

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-------------------------------------------------------------------/

  • thread #31: tid = 0x2962e2, 0x000000010038e674 XHEnglishBrushStudent`do7z_extract_entry(archivePath=0x000000017018d5e0, archiveCachePath=0x0000000170342a20, entryName=0x0000000000000000, entryPath=0x0000000000000000, fullPaths=1) + 160 at 7zMain.c:558, queue = 'com.zhitongyun.IMMngrTaskQueue', stop reason = EXC_BREAKPOINT (code=1, subcode=0xe7ffdefe)
    • frame #0: 0x000000010038e674 XHEnglishBrushStudentdo7z_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
      frame #2: 0x00000001004f7a88 XHEnglishBrushStudent-[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
      frame #4: 0x0000000100c30fd4 libdispatch.dylib_dispatch_call_block_and_release + 24 frame #5: 0x0000000100c30f94 libdispatch.dylib_dispatch_client_callout + 16
      frame #6: 0x0000000100c3bdb8 libdispatch.dylib_dispatch_queue_drain + 780 frame #7: 0x0000000100c342c4 libdispatch.dylib_dispatch_queue_invoke + 132
      frame #8: 0x0000000100c3e5d4 libdispatch.dylib_dispatch_root_queue_drain + 772 frame #9: 0x0000000100c40248 libdispatch.dylib_dispatch_worker_thread3 + 132
      frame #10: 0x0000000196f8d21c libsystem_pthread.dylib`_pthread_wqthread + 816
      (lldb)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.