3

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

Michael La Voie
  • 27,772
  • 14
  • 72
  • 92

2 Answers2

2

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

Community
  • 1
  • 1
gooch
  • 575
  • 5
  • 14
1

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
  • 8,044
  • 33
  • 51