Qbasicnews.com
zip in qbasic - Printable Version

+- Qbasicnews.com (http://qbasicnews.com/newforum)
+-- Forum: QBasic (http://qbasicnews.com/newforum/forum-4.html)
+--- Forum: QB Discussion & Programming Help (http://qbasicnews.com/newforum/forum-11.html)
+--- Thread: zip in qbasic (/thread-9623.html)

Pages: 1 2


zip in qbasic - Karelius - 08-31-2006

is it possible to compress files in zip with qbasic?


zip in qbasic - Torahteen - 09-01-2006

Well... yes. You need to read up on the format and algorithm used in a zip file however. Good luck Wink


zip in qbasic - Skyler - 09-05-2006

But you don't necessarily have to use the zip format. You could use other compression algos, or even develop your own.


zip in qbasic - Zap - 09-05-2006

Neo did a library full of compression routines, look into that.


zip in qbasic - Moneo - 09-28-2006

Why reinvent the wheel?
The best compression around is in PKZIP. Even WinZip uses the same algorithm.

Need to compress one or more files, just do a SHELL to PKZIP from your program, or PKUNZIP to decompress them.

Besides, it's not only the compression. There's also the CRC generated on each file, the decompresssion, and many other considerations.

Unless maybe you're just playing around.........

*****


zip in qbasic - na_th_an - 09-28-2006

A compression/decompression set of routines is very useful so you can compress/decompress from your program without having to call anything external. Makes your application more robust Smile

You can use ZZLib in freeBASIC, which compress quite well and is pretty straightforward to use (basicly you read uncompressed data from a "virtual file" - the library opens the compressed file, decompresses the data on the fly, and provides you with that uncompressed data).


zip in qbasic - Moneo - 10-01-2006

Quote:A compression/decompression set of routines is very useful so you can compress/decompress from your program without having to call anything external. Makes your application more robust Smile

You can use ZZLib in freeBASIC, which compress quite well and is pretty straightforward to use (basicly you read uncompressed data from a "virtual file" - the library opens the compressed file, decompresses the data on the fly, and provides you with that uncompressed data).
I get your point, amigo, but I disagree in general. I've developed some pretty robust applications that handled millions of dollars, and I've used external software, such as, Btrieve, Opt-Tech Sort, Pkzip/Pkunzip, the LIST utility, and several Norton Utilities. I think using industry-standard, documented software in your application enhances it and therefore makes it more reliable.

Maybe in a few years the ZZlib of Freebasic will become an industry standard, but it's not there yet.

Saludos..... Moneo


zip in qbasic - Anonymous - 10-01-2006

ZZLIB? perhaps you're thinking of zLib? and by all means, thats about as much as a standard as you're going to get. ever heard of php? it has zLib routines built in? doesn't it =p not to mention linux is HIGHLY dependent on it, as are Many other system.


zip in qbasic - Moneo - 10-02-2006

Ok if you say so.

*****


zip in qbasic - na_th_an - 10-05-2006

Quote:
na_th_an Wrote:A compression/decompression set of routines is very useful so you can compress/decompress from your program without having to call anything external. Makes your application more robust Smile

You can use ZZLib in freeBASIC, which compress quite well and is pretty straightforward to use (basicly you read uncompressed data from a "virtual file" - the library opens the compressed file, decompresses the data on the fly, and provides you with that uncompressed data).
I get your point, amigo, but I disagree in general. I've developed some pretty robust applications that handled millions of dollars, and I've used external software, such as, Btrieve, Opt-Tech Sort, Pkzip/Pkunzip, the LIST utility, and several Norton Utilities. I think using industry-standard, documented software in your application enhances it and therefore makes it more reliable.

Maybe in a few years the ZZlib of Freebasic will become an industry standard, but it's not there yet.

Saludos..... Moneo

The moment where you have to rely on the Operating System to do a shell to call another program, then going back to the caller one is a weak point, talking about security. Anybody could change the ZIP.EXE program (or whatever it is called) for another thing called just the same and voie la.