The solution we see is to use the GetDownloadStream overload that takes an offset. Use the offset to specify to the server you want to start receiving the file from the place you stopped reading it the previous time. Once you have received the remaining of the file, add the number of bytes you just read to the offset you had. This will be your new offset for the next time you open the stream.
Now, the stream will remain in a receiving state until you close it. So you will need to test to see if you can keep the stream open while the medical device tries to write to the file, that it succeed in doing so, and that you receive the resulting bytes, If so, you will still want to keep the offset of where you are, in case you get disconnected, so you can reconnect and start from where you were. If not, then you’ll have to close the stream to let the device write to the file, and open the stream again.
Applies to Xceed FTP for .NET. Imported from legacy forums. Posted by André (had 2929 views)