Page 2 of 2

Re: file transfer over sockets

Posted: Wed Jan 31, 2018 3:00 pm
by MaxV
This attachment show how to work with sockets, to me works also with big files.

Re: file transfer over sockets

Posted: Sun Feb 04, 2018 1:42 am
by windowsLC
I got as far as sending medium size files and it works just fine. Your 1meg will be no problem. What I meant earlier in the thread was if your file sizes start approaching sizes you wouldn't want to be loading fully into memory. In such a case what you can do is read out chunks and send those chunks, adding them into a file on the other side so you are avoiding the overhead of having the whole file in memory on both sides.

I am wondering if there is some way to do a http file transfer between two livecode programs. I know you can make a http server, but I have not seen any examples that take it to the level of serving non html files.