lzma

LZMA Or 7zip in Delphi

守給你的承諾、 提交于 2019-12-01 05:10:54
问题 Is there any Library in Delphi to handle LZMA (or 7zip)files including creating self extracting EXEs There are some sources code at 7zip.orgin (c++ java c#) but i want them in delphi BUT i want something which is stand alone (No DLLs) 回答1: there are two solutions: 1) use the into native pascal translated sdk: Pascal LZMA SDK Source Download 2) you can compile the c version of the sdk into obj files and link them to your delphi project. this one requires a translation of the header files to

Python 2.7: Compressing data with the XZ format using the “lzma” module

一曲冷凌霜 提交于 2019-12-01 03:04:13
问题 I'm experimenting with the lzma module in Python 2.7.6 to see if I could create compressed files using the XZ format for a future project that will make use of it. My code used during the experiment was: import lzma as xz in_file = open('/home/ki2ne/Desktop/song.wav', 'rb') input_data = in_file.read() compressed_data = xz.compress(input_data) out_file = open('/home/ki2ne/Desktop/song.wav.xz', 'wb') in_file.close() out_file.close() and I noticed there were two different checksums (MD5 and

How to decompress a .xz file which has multiple folders/files inside, in a single go?

风格不统一 提交于 2019-11-29 06:10:09
I'm trying to uncompress a .xz file which has a few foders and files inside. I don't see a direct way to do this using lzma module. This is what I'm seeing for a decompress method : In [1]: import lzma In [2]: f = lzma.decompress("test.tar.xz") --------------------------------------------------------------------------- error Traceback (most recent call last) <ipython-input-2-3b08bf488f9d> in <module>() ----> 1 f = lzma.decompress("test.tar.xz") error: unknown file format Are there any other methods to un-compress this file so that it will create the resultant folder ? Python 3.3 import tarfile

How to extract contents from 'Payload' file in a apple macOS update package?

自作多情 提交于 2019-11-29 01:49:54
I am extracting macOS sierra update package - macOSUpd10.12.1.pkg using following command to /tmp/macosupd directory. pkgutil --expand /Volumes/macOS\ Sierra\ Update/macOSUpd10.12.1.pkg /tmp/macosupd I can see following packages are bundled inside the metapackage. -rwxr-xr-x 1 Distribution drwxr-xr-x 6 FirmwareUpdate.pkg drwxr-xr-x 5 FullBundleUpdate.pkg drwxr-xr-x 36 Resources drwxr-xr-x 6 macOSUpd10.12.1.pkg I am not able to extract contents of Payload file. For example when i try to extract the Payload of macOSUpd10.12.1.pkg, i get following error message: with tar: tar -xvf macOSUpd10.12.1

How to decompress a .xz file which has multiple folders/files inside, in a single go?

老子叫甜甜 提交于 2019-11-27 23:44:11
问题 I'm trying to uncompress a .xz file which has a few foders and files inside. I don't see a direct way to do this using lzma module. This is what I'm seeing for a decompress method : In [1]: import lzma In [2]: f = lzma.decompress("test.tar.xz") --------------------------------------------------------------------------- error Traceback (most recent call last) <ipython-input-2-3b08bf488f9d> in <module>() ----> 1 f = lzma.decompress("test.tar.xz") error: unknown file format Are there any other

How to use LZMA SDK to compress/decompress in Java

限于喜欢 提交于 2019-11-27 18:02:53
http://www.7-zip.org/sdk.html This site provide a LZMA SDK for compress/decompress files, I would like to give it a shot but I am lost. Anyone got experience on this? Or a tutorial? Thanks. Short answer: don't The 7zip sdk is old and unmaintained and it's just a JNI wrapper around the C++ library. A pure Java implementation on a modern JVM (1.7+) is as fast as a C++ one and has less dependecies and portability issues. Have a look at http://tukaani.org/xz/java.html XZ is a file format based on LZMA2 (an improved version of LZMA) The guys that invented the XZ format build a pure java

How to extract contents from 'Payload' file in a apple macOS update package?

喜欢而已 提交于 2019-11-27 14:49:41
问题 I am extracting macOS sierra update package - macOSUpd10.12.1.pkg using following command to /tmp/macosupd directory. pkgutil --expand /Volumes/macOS\ Sierra\ Update/macOSUpd10.12.1.pkg /tmp/macosupd I can see following packages are bundled inside the metapackage. -rwxr-xr-x 1 Distribution drwxr-xr-x 6 FirmwareUpdate.pkg drwxr-xr-x 5 FullBundleUpdate.pkg drwxr-xr-x 36 Resources drwxr-xr-x 6 macOSUpd10.12.1.pkg I am not able to extract contents of Payload file. For example when i try to

Free compression library for C# which supports 7zip (LZMA) [closed]

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-27 11:09:15
I have a program (written in C#) that reads/writes its data directly (direct file access without server) to firebird database files. For a better exchange I want to (un)compress them on import/export for a better exchange over the internet without the need of an external program to (un)compress them. I know #ziplib which supports Zip, GZip, Tar and BZip2. What else free compression libraries for C# do you know? Is there a .NET library which supports LZMA so i can read/write ".7z" files? splattne There is a good article written by Peter Bromberg: 7Zip (LZMA) In-Memory Compression with C# Shows

How to use LZMA SDK to compress/decompress in Java

假装没事ソ 提交于 2019-11-27 04:16:41
问题 http://www.7-zip.org/sdk.html This site provide a LZMA SDK for compress/decompress files, I would like to give it a shot but I am lost. Anyone got experience on this? Or a tutorial? Thanks. 回答1: Short answer: don't The 7zip sdk is old and unmaintained and it's just a JNI wrapper around the C++ library. A pure Java implementation on a modern JVM (1.7+) is as fast as a C++ one and has less dependecies and portability issues. Have a look at http://tukaani.org/xz/java.html XZ is a file format

Free compression library for C# which supports 7zip (LZMA) [closed]

谁说胖子不能爱 提交于 2019-11-26 17:59:39
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . I have a program (written in C#) that reads/writes its data directly (direct file access without server) to firebird database files. For a better exchange I want to (un)compress them on import/export for a better exchange over the internet without the need of an external program to (un)compress them. I know