Results 1 to 6 of 6

Thread: Show Download Progress/Time Remaining

  1. #1
    New Member
    Join Date
    Jun 99
    Location
    Anoka, MN
    Posts
    3

    Post

    I'm looking for a way to show the progress of a download taking place using the MS Inet control and the standard progress bar.

    I'm also wondering how I might retreive a file's size (via inet control or MS Winsock if needed).

    These things are very important for my application! Any help will be GREATLY appreciated.

    -Paul Swonger
    psyreal@uswest.net

  2. #2
    Guest

    Post

    I would think you can do this with Inet.

    I am about ready to do this myself. My server's response headers say the file I am after is 7680 bytes. (see content-length in headers below)

    HTTP/1.1 200 OK
    Date: Sat, 26 Jun 1999 00:20:15 GMT
    Server: Apache/1.3.0 (Unix) PHP/3.0.2a FrontPage/3.0.4.2
    Last-Modified: Wed, 16 Jun 1999 18:52:04 GMT
    ETag: "169a7-6-3767f254"
    Accept-Ranges: bytes
    Content-Length: 7680
    Keep-Alive: timeout=15, max=99
    Connection: Keep-Alive
    Content-Type: application/octet-stream

    When downloading using getchunk, you know how many bytes you are pulling down in a chunk ie., 1024

    I've never made a progress bar before but I would think the numbers are there to do the math. 7680/1024 = progress

    If this helps, let me know and show me how you end up doing it

    ------------------
    Dave
    deccles@pacbell.net

  3. #3
    Guest

    Post

    When I referenced the getchunk I was refering to the execute method.
    When using openurl, I believe it pulls down 64k bytes at a time.

    My needs are for the execute method because I am sending authentication request headers to access the directory on my server.


    ------------------
    Dave
    deccles@pacbell.net

  4. #4
    New Member
    Join Date
    May 99
    Posts
    1

    Post

    I'm also trying to figure out how to do a progress bar. I think that my problem is a little more complicated though. When I use this command:

    Inet1.Execute , "Get Readme.txt Readme.txt"

    my IcResponseCompleted event never occurs. The entire file is downloaded fine but it causes several problems.

    For one, I can't interrupt the transfer, and for another I don't think I'll be able to show the progress remaining. Does anyone know why my icResponseCompleted isn't happening? By the way, someone else posted about how to do progress remaining earlier on this messageboard. You might want to check that out.

    If you have any idea what my problem is, PLEASE email me. Is this a difference between VB 6 and VB 5? I'm using VB 6...

    Tim Goodaire

  5. #5
    New Member
    Join Date
    Jun 99
    Location
    Anoka, MN
    Posts
    3

    Post

    I have completed the application I was working on... It shows Download progress, K/Sec and several other things... The only thing is I went with a 3rd party control called PowerTCP. You can get it at www.dart.com. It's not cheap... But I feel it's worth the deal.

    -Paul Swonger

  6. #6
    New Member
    Join Date
    Apr 99
    Location
    -
    Posts
    7

    Post

    Well, I guess this should help y'all out a little bit :-) (those smiley pictures ehe)

    Use the getchunk header as someone else said for the size, set the .max value of the progressbar to that and each time the file goes further 1kb or byte set the progress.value = progress.value + 1
    and it ought to work
    Might want to try using Winsock for downloading if possible cuz it has Bytes/TotalBytes

    Wax

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •