mohamed hadad
mohamed hadad

Reputation: 31

Uploading Large Files

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

Answers (2)

gooch
gooch

Reputation: 575

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

Upvotes: 2

M.A. Hanin
M.A. Hanin

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

Related Questions