gettingstarted
[Top] [All Lists]

Re: Retrieve an image on Internet

To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Subject: Re: Retrieve an image on Internet
From: Phil M <phil at mobleybros dot com>
Date: Tue, 31 Jan 2006 08:19:41 -0800
Delivered-to: gettingstarted at lists dot realsoftware dot com
References: <1BB40778E8B10444B742109270B97B0EA6436B at OWBSW2KVX2 dot jostens dot com> <p06230901bffa57dedd47 at [192 dot 168 dot 0 dot 2]> <p06230910bffb870c4528 at [192 dot 168 dot 0 dot 2]> <8B68F75F-4ED6-4054-AECB-91D567FBE282 at freaksw dot com> <p06230918c004cc491920 at [192 dot 168 dot 0 dot 2]>
On Jan 31, 2006, at 12:19 AM, FreeFL wrote:

As all your fine tutorials, this works nicely but I never end with questions... I want to get a series of image files from some site, so I use your example within a loop in which I parse a file giving a list of image urls. I want the loop to wait for each image download completion for say three seconds, then process this image or skip to next. My firts attempts of course got my app hanging... How do I write the "wait, then test and eventually skip" part of the loop, since I found no timeout property or settimeout method in the HTTPSocket thing ?

Thanks, again and again...

I have a sample project like that:

    http://developer.dreystone.com/downloadqueue.php

It does not have a delay between downloads, but it does download multiple files at once (I believe the default is 3) because of multiple sockets. It works similar to a browser in that the first files requested will be the first ones handled. It uses the HTTPSocket events instead of the direct download method, but my code does include a timeout feature as well.

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>