Large File Transfer

Bringing the internet highway into your project? Building FTP, HTTP, email, chat or other client solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
ecflyer
Posts: 24
Joined: Tue Oct 20, 2009 12:04 am

Large File Transfer

Post by ecflyer » Wed Nov 03, 2010 1:08 am

Hi all,

I need to transfer files from one program on one computer to another program on another computer. I have succeeded in doing this with sockets, but it's inconsistent and slow with large media files. I need the transferring to be non-blocking. The rest of the functions between the two programs also use sockets and it seems that a transfer can easily be interrupted and stopped.

I do not know how to use the shell command and could not find enough information to help me figure it out; not sure if shell is the best way.

A thought was to create separate programs to transfer the files, but I still do not know how to move large files through sockets without breaking them into smaller byte chunks.

So I guess the question is how do I make rev use the file share function? (Something like the way FTP downloads data from a website)

Thanks,
E

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Large File Transfer

Post by Mark » Wed Nov 03, 2010 10:02 am

Hi ec,

You have given the answer already:
A thought was to create separate programs to transfer the files, but I still do not know how to move large files through sockets without breaking them into smaller byte chunks.
You do need to break them into smaller chunks and send the chunks in a repeat loop with messages.

Best,

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

ecflyer
Posts: 24
Joined: Tue Oct 20, 2009 12:04 am

Re: Large File Transfer

Post by ecflyer » Wed Nov 03, 2010 10:57 pm

Thanks Mark,

That's how I run it now. I was just hoping for a better way to do it in the background.

Eric

Post Reply