tags:

views:

64

answers:

2

Hello, I'm using a windows service on my server to receive large files (1 GB) from desktop clients when I use the TCPClient class it creates astream to send the file which bloks my memory, What is the well designe for this problem

+1  A: 

The file should be segmented, then the method should send each segment apart, while loading the segments into the memory on-demand.

It might be that using My.Computer.Network.UploadFile() will provide you a better, already-written, upload method.

M.A. Hanin
+2  A: 

You could look into the Microsoft Background Intelligent Transfer Service as mentioned here.

gooch