Page 1 of 1
Zip Function for Linux
Posted: Thu Jun 28, 2012 7:30 am
by shire
Hello,
Needs help on zip function or library for linux like PureZip.
Any ideas?
Thank you.
Re: Zip Function for Linux
Posted: Thu Jun 28, 2012 8:24 am
by idle
Code: Select all
ImportC "-zlib.a"
compress2(*dest, *destLen, *source, sourceLen.i, level.i)
uncompress(*dest, *destLen, *source, sourceLen)
EndImport
Allocate the *dest to the size of your sourcelen
the pointer to *destlen is the compressed size
write the data to file
Re: Zip Function for Linux
Posted: Thu Jun 28, 2012 8:37 am
by shire
Tnx idle.
How about compressing multiple file or adding file to the existing zip file?
Re: Zip Function for Linux
Posted: Thu Jun 28, 2012 8:47 am
by idle
Re: Zip Function for Linux
Posted: Thu Jun 28, 2012 9:01 am
by shire
Tnx idle.
I'll try it.
Re: Zip Function for Linux
Posted: Mon Jul 02, 2012 8:44 am
by shire
@Idle:
I tried it but it doesn't support zip file.
