Link to home
Start Free TrialLog in
Avatar of ST3VO
ST3VOFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Downloading multiple images from URL FAST

Hi expert,

I need to download a list of images from a URL's FAST!

I guess the faster's way is to use Threads?

If so, could someone please give me an example code?

Or if anyone knows a faster way...

Hope you can help

thanks

ST3VO
Avatar of dinilud
dinilud
Flag of India image

See rllibby's solution from the above link
Avatar of ST3VO

ASKER

Hmmm....I can compile it without errors but when I try to run the application nothing happens :o/

Any ideas why???
Avatar of ST3VO

ASKER

OK...got it running....

But how do I get this code to actually download files from the urls???

It's downloading nothing although I've changed the links the url's that link to images!

Avatar of ST3VO

ASKER

Url's I've inserted in the listbox format are:

for example:
http://www.somesite.com/animage.gif

ASKER CERTIFIED SOLUTION
Avatar of dinilud
dinilud
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ST3VO

ASKER

Hi dinilud,

I installed your component and to downloads worked fine, BUT my problem is that I need to download using as many Threads as possible.

This component will download one at a time and I need Multiple threads so I can download as fast as possible.

rllibby's this comonent is a mutithreaded component.
You check the updation of download list.
Avatar of ST3VO

ASKER

I have checked and it's downloading one at a time. I really need speed in downloading above all!

Avatar of ST3VO

ASKER

Note: Without downloading any download acelerators ;o)
Check On progress events of that component.
Avatar of ST3VO

ASKER

UrlDownload1UrlProgress(Sender: TObject; ID,
  TotalSize: Cardinal; Stream: TStream); ???
Avatar of ST3VO

ASKER

Hi dinilud,

I am going to go for your answer and it does work great. There's just 1 thing I need to know...

How could I get the application to Terminate once the downloads are completed?

Thanks

ST3VO
Avatar of ST3VO

ASKER

Never mind. I've done it!!!