7zip LZMA compression

Share your advanced PureBasic knowledge/code with the community.
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: 7zip LZMA compression

Post by ts-soft »

thx to Mistrel and luis, works fine here.
agentsasori
New User
New User
Posts: 2
Joined: Tue Sep 21, 2010 11:18 pm

Re: 7zip LZMA compression

Post by agentsasori »

Hi there.

I tried the 7z-code above. Very, very interesting. I prefer RAR or 7z.

The generated 7z-archive created by the code seems to be not valid! I cannot unpack it (using WinRAR). "Unexpected file-end".

Any Ideas?
Thanks,
Agent_Sasori
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Re: 7zip LZMA compression

Post by blueznl »

Can you unpack it using 7zip?
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: 7zip LZMA compression

Post by gnozal »

agentsasori wrote: I tried the 7z-code above. Very, very interesting. I prefer RAR or 7z.
The generated 7z-archive created by the code seems to be not valid! I cannot unpack it (using WinRAR). "Unexpected file-end".
Any Ideas?
Imho, the code does not generate a 7-zip archive.
It compresses a file using the LZMA algorithm, with a basic header.
The 7z format is much more complicated.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
agentsasori
New User
New User
Posts: 2
Joined: Tue Sep 21, 2010 11:18 pm

Re: 7zip LZMA compression

Post by agentsasori »

Hi.

No, I cannot open the archive. 7z-filemanager also.
So how to open it? Only with the pb-routine?
Thanks,
Agent_Sasori
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Re: 7zip LZMA compression

Post by blueznl »

I fear Gnozal is right.

You could, of course, always use the 7zip .DLL to have all 7zip functionality at hand...
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
Post Reply