question of method for update my app

Eric Chatonet eric.chatonet at sosmartsoftware.com
Wed Nov 26 11:22:27 EST 2008


Bonjour Tiemo,

"How to Download Data from the Internet" tutorial might help you:
This stack explains how to test the user connection, an url validity,  
why and how to use get url or load url, retrieve data from framed  
pages, give an account of download progress, manage errors, display  
retrieved data (web pages, stacks, compressed or not), etc.

You will access this tutorial through "Tutorials Picker" a free  
plugin that interfaces with the So Smart Software website in order to  
display all available tutorials stacks directly from the web.
You will find it by going to http://www.sosmartsoftware.com/
Revolution/Plugins or Tutorials section.

Le 26 nov. 08 à 13:12, Tiemo Hollmann TB a écrit :

> I want to create an automatic update function for my app, calling  
> from the
> splash stack. After having checked the internet connection and  
> gathered all
> path informations etc., what is the best method for the file transfer?
>
> 1. Is it appropriate to use just a "put URL... into URL." or should  
> I use a
> load URL + put into URL for better control?
>
> 2. I didn't find a command to read the file size. I would like to  
> read the
> total of all file sizes to display a progress bar
>
> 3. What is the appropriate approach to verify, that the download and
> replacement of all files was successful? Perhaps a file could be
> accidentially in use and could not be replaced, or the file  
> transfer didn't
> transferred the total bytes and the old file is being replaced by a
> corrupted file?

As for 3, you could add a checksum.

Best regards from Paris,
Eric Chatonet.
----------------------------------------------------------------
Plugins and tutorials for Revolution: http://www.sosmartsoftware.com/
Email: eric.chatonet at sosmartsoftware.com/
----------------------------------------------------------------





More information about the use-livecode mailing list