Multi download file
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Multi download file
Hi people,
I wanted to know if it was possible with LiveCode manage multiple downloads at the same time, in practice I would like to create a multidownload manager like jdownloader or Mipony something simple to start and I wanted to understand if LiveCode could handle something like this.
Thanks to all those who respond. ;)
I wanted to know if it was possible with LiveCode manage multiple downloads at the same time, in practice I would like to create a multidownload manager like jdownloader or Mipony something simple to start and I wanted to understand if LiveCode could handle something like this.
Thanks to all those who respond. ;)
Re: Multi download file
Hi,
Yes, you can do this.
Kind regards,
Mark
Yes, you can do this.
Kind regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: Multi download file
You can give me some most advise. . To manage downloads using liburldownloadtofile always ..?
Re: Multi download file
Hi boysky76,
because the urls are not cached but directly written to file.
And it can be "monitored", which is of course essential for progress bars etc.!
Best
Klaus
@Mark
Good one, I was also tempted...
yes, because that is NON blocking like other calls and this does not "eat" too much RAMboysky76 wrote:To manage downloads using liburldownloadtofile always ..?
because the urls are not cached but directly written to file.
And it can be "monitored", which is of course essential for progress bars etc.!
Best
Klaus
@Mark
Good one, I was also tempted...

Re: Multi download file
Hi,
Klaus and you are right, libUrlDownloadToFile is the way to go.
You might want to tell us a little more about what you want to do. E.g. I made an FTP client a long time ago, which very nicely downloaded multiple files simultaneously, until an update of Revolution broke it and I couldn't bother to fix it.
Do you want to download very big files? Why would you do something like that, if there are already downloaders for this purpose? Do you need a solution for a special purpose, to build into your own software? If could tell what you want to do differently, we might give you some good advice.
Kind regards,
Mark
Klaus and you are right, libUrlDownloadToFile is the way to go.
You might want to tell us a little more about what you want to do. E.g. I made an FTP client a long time ago, which very nicely downloaded multiple files simultaneously, until an update of Revolution broke it and I couldn't bother to fix it.
Do you want to download very big files? Why would you do something like that, if there are already downloaders for this purpose? Do you need a solution for a special purpose, to build into your own software? If could tell what you want to do differently, we might give you some good advice.
Kind regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: Multi download file
Hi,
Thanks for the reply boys, one other thing .. and can also handle pause and resume downloads? If yes, what commands I manage this?
Thanks for the reply boys, one other thing .. and can also handle pause and resume downloads? If yes, what commands I manage this?
Re: Multi download file
Hi,
AFAIK pause and resume commands are not included in LiveCode. You'd have to write your own scripts to do that. It should be relatively easy to do this with FTP servers, but it might be difficult to do this with HTTP servers.
Kind regards,
Mark
AFAIK pause and resume commands are not included in LiveCode. You'd have to write your own scripts to do that. It should be relatively easy to do this with FTP servers, but it might be difficult to do this with HTTP servers.
Kind regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: Multi download file
Hi,
I certainly know that there are many software that already manage downloads, but I wanted to make one to learn how to handle this, large and small files, with the files in the download queue, while 5 or 6 will discharge and other depart in followed.
I certainly know that there are many software that already manage downloads, but I wanted to make one to learn how to handle this, large and small files, with the files in the download queue, while 5 or 6 will discharge and other depart in followed.