Forum > Networking and Web Programming

Download with progressbar

(1/3) > >>

lazzaro2023:
Hi everyone!!!
I have a problem.
Is it possible to implement a procedure that shows me a progress bar while I download a file from the internet?
Can someone help me?

Handoko:
Hello lazzaro2023,
Welcome to the forum.

In the link below, you can find "File download" demo in the Networking category:
https://wiki.freepascal.org/Portal:HowTo_Demos

dje:
I posted a threaded progressbar downloader here:
https://forum.lazarus.freepascal.org/index.php/topic,60314.msg450770.html#msg450770
The actual downloading code is maybe ~150 lines. I couldn't think of a smaller way of writing one.
I've also attached a project to this post. It should get you started

lazzaro2023:
Thanks for the posts!!
I need to do the same thing for uploading files.
Can you help me?

KodeZwerg:

--- Quote from: lazzaro2023 on February 09, 2023, 10:19:25 am ---Can you help me?
--- End quote ---
We can try.

--- Quote from: lazzaro2023 on February 09, 2023, 10:19:25 am ---I need to do the same thing for uploading files.
--- End quote ---
Upload to where?
Basics are the same, just easier since a download with a progressbar can be wrong when the source not tell the real size (for such my download switch to a marquee and still tells in how fast it is)
So have your progressbar updated after each chunk you uploaded.

Navigation

[0] Message Index

[#] Next page

Go to full version