Is there a way to send a file threw any of the Moo extensions or any other web extensions?
Printable View
Is there a way to send a file threw any of the Moo extensions or any other web extensions?
'Moo Server utilities'?
If your asking what i think your asking then yes all! the moo objects can send files and so can a few other extensions.
I meant the Moo Extensions, sorry...
So all the Moo objects can send any file? So lets say, a picture file?
They do have a "send file" action. That's what it does. On the receiving end you would use receive binary and create/append to receive and save the file.
Of course, you have to know how to talk to the server expecting the file. You'll need to tell it the file name (and normally file size) before you send, so it knows how much data to expect, and where to save it. If you didn't write the program that's going to be receiving, this is often the hardest bit.
If you are sending the file to another program you've written, then you can choose how to send this information.
Note that sending a file to a webserver doesn't work well in Moo due to some glitches when sending text after sending binary via moosock.
Sending a file to a webserver by moosock was discussed in this thread: http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=93006
An example that works for uploading files up to a few kB is on page 4.
Sending files using Moo is horrible. Because if it gets over a certain amount of bytes the user will just be disconnected.