Download and read files outside Monkey App

Monkey Forums/Monkey Programming/Download and read files outside Monkey App

Raul(Posted 2013) [#1]
I was sure there was a similar topic somewhere here but I can't find it.

I need to do 2 things on this little application I made for a friend of mine:
- Access an url like: http://mysite/trainings/thelist.xml (in order to download the file locally)
- After that I want to read that xml file and make some other downloads of pictures and sound files.

I will load that images and sounds to play them later in my app.. ios and android.

Can someone point me to the right topic or tell me where to look?

Thanks,


Tibit(Posted 2013) [#2]
Look for Load Async in the docs. I think that was specifically for images. I think you can use the http TCP example in the bananas/mak/ folder to get the xml file.

I know it is vague, but maybe a start until someone else comes along with the exact answer :)


Raul(Posted 2013) [#3]
from what I read in the docs about LoadAsync, it says it's only load the image. Does not store it locally. I need to download these "packages" which are: images, sounds and text files.

I tried to have a look over the Mak example but I don;t understand a think :)


Gerry Quinn(Posted 2013) [#4]
I've not used it but I think TcpStream may be what you want.


Raul(Posted 2013) [#5]
This is out of my league..

I see that to LoadImages from outside MonkeyApp it's easy. I found thay simply must use: "monkey://internal"

So, the most important issue now it's: how to download the file from the website. I do not understand all these protocols with TCP, UDP. I had a look over that samples but still don't get it.

No one here made something similar??