Reputation: 31
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
Upvotes: 3
Views: 573
Reputation: 575
You could look into the Microsoft Background Intelligent Transfer Service as mentioned here.
Upvotes: 2
Reputation: 8074
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.
Upvotes: 1