It works, retry and if you have still problems PM me and I'll send it to you by email if you like.Arcturus wrote:Link seems to be brocken... Unless that's just me?
Wrappers for some compression libraries (x86/x64)
Re: Wrappers for some compression libraries (x86/x64)
"Have you tried turning it off and on again ?"
A little PureBasic review
A little PureBasic review
-
- Enthusiast
- Posts: 628
- Joined: Fri Feb 20, 2009 9:24 am
- Location: Almaty (Kazakhstan. not Borat, but Triple G)
- Contact:
Re: Wrappers for some compression libraries (x86/x64)
this is some test? so many files... how i can unpack files from BZIP2 type?
or even case is worth...
first i need to add two symbols to this file for change signature:
h91AY&SYж to BZh91AY&SYж
than it can unpack, but inside second file, i must to do same thing - change signature.
than read this unpacked xml file (all this make inside memory, without temp files)
than export to exel... i am almost hanged
so i want to do this and... how to unpack BZIP2? add 2 symbolsi think will be easy... so first just unpack?
or even case is worth...
first i need to add two symbols to this file for change signature:
h91AY&SYж to BZh91AY&SYж
than it can unpack, but inside second file, i must to do same thing - change signature.
than read this unpacked xml file (all this make inside memory, without temp files)
than export to exel... i am almost hanged
so i want to do this and... how to unpack BZIP2? add 2 symbolsi think will be easy... so first just unpack?
-
- Enthusiast
- Posts: 628
- Joined: Fri Feb 20, 2009 9:24 am
- Location: Almaty (Kazakhstan. not Borat, but Triple G)
- Contact:
Re: Wrappers for some compression libraries (x86/x64)
read xml and export to exel i done, but i am still don't know how to unpack? as i understand this code work with special pak: one files - one pak, but in my case inside pak a few files. how to unpack in this case?
i found some GnuWin32 programm, and i try to use bunzip2.exe for unpack and see what happen - it unpack, but all files mix inside one... so i am still stuck.
i found some GnuWin32 programm, and i try to use bunzip2.exe for unpack and see what happen - it unpack, but all files mix inside one... so i am still stuck.
Re: Wrappers for some compression libraries (x86/x64)
I'm gonna go with "how can anyone know?" specifically, to which link are you referring?Arcturus wrote:Link seems to be broken... Unless that's just me?
-
- Enthusiast
- Posts: 628
- Joined: Fri Feb 20, 2009 9:24 am
- Location: Almaty (Kazakhstan. not Borat, but Triple G)
- Contact:
Re: Wrappers for some compression libraries (x86/x64)
up: as i found - this is tar.bz2 format and it must be unpack by two different programs.
first unpack this file use bz2, than tar? have PB this tar and bz2 user library?
first unpack this file use bz2, than tar? have PB this tar and bz2 user library?
Re: Wrappers for some compression libraries (x86/x64)
@seregaz, what you are asking has not much to do with the code posted here.
About your file, yes, tar-zipped files are common and you are correct it's a dual stage compression, or better... one archiver (tar) + one compressor (gzip or bzip).
Searching in the forum I found these two posts:
tar.gz Module
http://www.forums.purebasic.com/english ... 12&t=55640
My TAR extraction routines
http://www.purebasic.fr/english/viewtop ... 12&t=41417
Some info on the tar format (it's very simple) -> http://en.wikipedia.org/wiki/Tar_%28computing%29
Better to continue there or in coding questions
These are simply the algorithms to pack/unpack memory buffers, there is no file system and/or archive support whatsoever. They are meant to build up your own file format (if needed) on top of them.luis wrote: for the compression/decompression of memory buffers
About your file, yes, tar-zipped files are common and you are correct it's a dual stage compression, or better... one archiver (tar) + one compressor (gzip or bzip).
Searching in the forum I found these two posts:
tar.gz Module
http://www.forums.purebasic.com/english ... 12&t=55640
My TAR extraction routines
http://www.purebasic.fr/english/viewtop ... 12&t=41417
Some info on the tar format (it's very simple) -> http://en.wikipedia.org/wiki/Tar_%28computing%29
Better to continue there or in coding questions

"Have you tried turning it off and on again ?"
A little PureBasic review
A little PureBasic review