RTC Forums
November 25, 2024, 02:44:59 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Login
Register
RTC Forums
>
Subscription
>
Support
>
Transferring file from client to server and downloading a file
Pages: [
1
]
« previous
next »
Print
Author
Topic: Transferring file from client to server and downloading a file (Read 5272 times)
gyucel
Newbie
Posts: 3
Transferring file from client to server and downloading a file
«
on:
June 18, 2010, 11:35:45 AM »
Hi All,
While searchinh HTTP support, I found RTC components. I examined deeper and saw that they are very well designed and meets my needs.
Now,
From client to server I want to post an XML file and I want to download a zip file from server. I searched for examples and examined the demos bu cant figure out how. Is there any sample code?
Both client and server works as a windows service. They must run 7/24 and multi threaded. What is the most rebust way to code this with RTC.How can I do that?
Regards.
Logged
gyucel
Newbie
Posts: 3
Re: Transferring file from client to server and downloading a file
«
Reply #1 on:
June 18, 2010, 12:19:37 PM »
Im so sorry that there are lots of samples in QuickStart directory.
Regards.
Logged
D.Tkalcec (RTC)
Administrator
Posts: 1881
Re: Transferring file from client to server and downloading a file
«
Reply #2 on:
June 18, 2010, 01:14:46 PM »
For an example project sending data from Client to Server, look in the "QuickStart/ClientUpload" folder.
That project also shows how to split large content in smaller chunks when sending files, so you can also send large files which do not fit in Clients memory. To send requests with short content, you can directly write the whole content body in the OnBeginRequest event, so you do not need any other events than OnBeginRequest and OnDataReceived on the Client.
Best Regards,
Danijel Tkalcec
Logged
D.Tkalcec (RTC)
Administrator
Posts: 1881
Re: Transferring file from client to server and downloading a file
«
Reply #3 on:
June 18, 2010, 01:21:26 PM »
For an example project where the Client is downloading files from Server, look in the "Demos/File_Client" folder. Same as in the "upload" example, this one can also handle large files.
For simple examples, check
visual Quick Start lessons
.
Best Regards,
Danijel Tkalcec
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Dashboard
-----------------------------
=> General
=> 3rd-Party
=> Quick Start
-----------------------------
Subscription
-----------------------------
=> Support
Loading...