Compress files in vb.net?
I'm just wondering if it is possible to create an vb.net application to compress files, without using a 3rd party app.
If yes, can you please point me in the right direction, give me some tips, tutorials or sample code?
I will appreciate any help, thanks
Re: Compress files in vb.net?
Hi,
Compressing and Decompressing files as very complex.
Perhaps you can find some good information, here.
Re: Compress files in vb.net?
Quote:
Originally Posted by
sparrow1
Hi,
Compressing and Decompressing files as very complex.
Perhaps you can find some good information,
here.
Hi sparrow1.
I tested that code before. It seems to make the file bigger, rather than to compress it.
A .docx file went from 147kb to 179kb after compression with application.
Thanks a lot for the link though
Re: Compress files in vb.net?
I use the #ZipLib library from ic#code ... http://sharpdevelop.net/OpenSource/SharpZipLib/ when I need to compress/decompress files.
-tg
Re: Compress files in vb.net?
I was trying to solve this issue today. I gave up on a pure-VB.net solution. Instead I just downloaded the command line version of 7zip and use
Code:
Process.start("7za a -tzip archive.zip Folder", , True)
to compress my folder(and wait for it to finish). If I had done that from the get-go I would have saved an hour or two.
Sure, I have to include the executable, but since I'm not distributing this application I really don't care.
Re: Compress files in vb.net?