RTC Forums

Subscription => Support => Topic started by: HelgeLange on January 13, 2017, 03:37:23 PM



Title: Transfer file question
Post by: HelgeLange on January 13, 2017, 03:37:23 PM
Hi Danijel,

one small question...
I have a bit of a problem when clients (customers) connect per ftp to my server, some work, some can't get a directory listing.
Now I'd like to implement through RTC the sending (like compressed database backups up to 1-2 gb size) and receiving of file (program updates, around 130 mb). Does it makes sense or is the encoding or something making it much bigger to send with RTC... ?
I wrote a small GetFile that works and transfers 50mb rather fast...

Or should I use something like indy and binary file transfer..

Thanks
Helge


Title: Re: Transfer file question
Post by: D.Tkalcec (RTC) on January 13, 2017, 03:45:36 PM
HTTP has a small header footprint (not much larger than FTP), while the entire content body is sent in raw binary format, which makes it a perfect candidate for implementing file transfer (upload and download). There is no reason for a RTC Server to use more bandwidth or be slower than a FTP Server. Just use a TRtcDataProvider component on the Server and TRtcDataRequest on the Client side. If you need examples, check BrowserUpload, ClientUpload and ServerLesson1 - 4 in the QuickStart folder (included in the RealThinClientSDK zip file).

Best Regards,
Danijel Tkalcec


Title: Re: Transfer file question
Post by: HelgeLange on January 13, 2017, 04:09:08 PM
Thanks, just wanted to have the confirmation that I'm not developing in a wrong direction. I used your examples, they work just fine and are easy to use :)

Helge