473,394 Members | 1,752 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Using SharpZipLib and getting progress status

Hey,

I've been developing an app that would basically clone the
functionality that apt-get does for debian and port it to windows. Yes,
the whole deal - repositories, .deb clones (in this case, pgz) and the
whole deal. Currently the download thats up there is really old, my
latest nightly couldn't get posted, and i hope to put one up this
friday.

Well - i need to know if anyone knows how to use SharpZipLib and get
progress percentage during extraction and compression. Any help will be
great.

Thanks,
tom wans

- p.s. if you'd like to work on autogz,
http://tomwans.pbwiki.com/autogz, then reply and tell me if you can
help out on a GUI.

Nov 26 '06 #1
2 5319
Dr_PoLish (the schnitzel) wrote:
I've been developing an app that would basically clone the
functionality that apt-get does for debian and port it to windows. Yes,
the whole deal - repositories, .deb clones (in this case, pgz) and the
whole deal. Currently the download thats up there is really old, my
latest nightly couldn't get posted, and i hope to put one up this
friday.

Well - i need to know if anyone knows how to use SharpZipLib and get
progress percentage during extraction and compression. Any help will be
great.
SharpZipLib exposes a stream from which you can read or
write.

Meaning that a progress percentage would be just like
progress percentage for any copy style operation:

percentage = 100 * number of bytes so far / total number of bytes

Arne
Nov 27 '06 #2
thanks, that means that im gonna have to stop using the fastzip
function i've been using this whole time lol .

Arne Vajhøj wrote:
Dr_PoLish (the schnitzel) wrote:
I've been developing an app that would basically clone the
functionality that apt-get does for debian and port it to windows. Yes,
the whole deal - repositories, .deb clones (in this case, pgz) and the
whole deal. Currently the download thats up there is really old, my
latest nightly couldn't get posted, and i hope to put one up this
friday.

Well - i need to know if anyone knows how to use SharpZipLib and get
progress percentage during extraction and compression. Any help will be
great.

SharpZipLib exposes a stream from which you can read or
write.

Meaning that a progress percentage would be just like
progress percentage for any copy style operation:

percentage = 100 * number of bytes so far / total number of bytes

Arne
Nov 28 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jack Addington | last post by:
I am working on app that currently all resides on the same machine but plan to pull the database off and try to move all the datafunctionality to a remote machine. I have a data function that is...
47
by: Bonj | last post by:
I downloaded the gzlib library from zlib in order to do compression. (http://www.gzip.org/zlib) The prototype of the compression function seems to be int compress (Bytef *dest, uLongf *destLen,...
0
by: Lokkju | last post by:
I am pretty much lost here - I am trying to create a managed c++ wrapper for this dll, so that I can use it from c#/vb.net, however, it does not conform to any standard style of coding I have seen....
3
by: Brian Birtle | last post by:
**** A CHALLENGE TO THE GURUS - refute the statement "It's impossible to build a file upload progress meter using ASP.NET" **** First person to prove me wrong gets "All Time .NET Programming GOD"...
3
by: simchajoy2000 | last post by:
Hi, I am designing an interface which allows users to load certain files into the interface. While the file is loading, I want to display a VB.NET form with the list of messages generated...
2
by: Robert Smith | last post by:
Hello, I have a problem with my progress bar, as shown in the attached code, the values on the bar are incremented within a threaded timer event. The timer works fine and ticks all the way...
12
by: JMB | last post by:
Hello, I was wondering if anyone knew of any projects extending the inline upload progress bar to utilize an inpage image uploader with bar, without having to refresh or go to a seperate page,...
5
by: Miro | last post by:
I will try my best to ask this question correctly. I think in the end the code will make more sence of what I am trying to accomplish. I am just not sure of what to search for on the net. I...
6
by: ahd2008 | last post by:
Hi, I have a table for the enrollment of the employees: Employee ID Session ID Status(In-Progress;Complete;Cancel;No-Show;Waiting List) as Combo Box Plan Remarks
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.