INDY10 file download with progress

Posted on 2009-12-23
Last Modified: 2013-11-23
I am sure this question has been asked many times but I would like to know how to download a file from the internet (.exe's mostly) using INDY10 with Delphi7 and have the download precentage shown in a standard progressbar possibly with some text like this

---||||||| 3k of 10k downloaded.

Question by:blue220
    LVL 31

    Accepted Solution

    If there's an OnWork event you can use that to show a progressbar.  Whether it can show you % depends on whether the file size is known at start of download.  If you just want to indicate to the user that something's happening then I just cycle the progressbar round from Max to Min, then increment it up again.

    Author Comment

    I used the JVHttpURLGrabber which has an OnProgress event which works fine. I will ask that this question be deleted.
    LVL 31

    Expert Comment

    Notice: blue220 has requested that this question be deleted for the following reason:
    Solved myself.

    I posted my comment before you enlightened us of this.

    Author Comment

    Your comment did not solve my problem or even provide me with an example.

    Author Closing Comment

    enjoy the free points.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
    Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now