Tips for File Transfer

Oct 22, 2013 at 5:13 PM

I have been investigating SuperSocket and have been able to very quickly set up a prototype of a server I need to create. I have been very impressed so far - thank you so much for making all of your hard work available

I would like to implement the ability for a client (I am using SuperSocket ClientEngine) to send very large files (up to several GBs) to the server. Can you offer any tips on how this could be achieved? Is there an equivalent to Socket.SendFile in System.Net.Sockets that I should use?

Many thanks for any assistance

Oct 23, 2013 at 10:32 AM
Edited Oct 23, 2013 at 10:34 AM
I think you could break your big file into small pieces and wrap the small pieces using your application protocol.

In the server side you shouldn't always cache the received data into memory, and always write on your disk also is not good solution. Probably you should set a threshold size, if your cached data exceed the threshold value, you should persistent the data into disk.
Oct 29, 2013 at 11:20 PM
Thank you for the advice Kerry