Suppose I want to transfer only part of a file via FTP - is it possible to use the standard FTP protocol?
In HTTP, I could use the Range header in the request to indicate the data range of the remote resource. If this is a 1 mb file, I can request bytes from 600 to 700 thousand.
Is there anything similar in FTP? I read FTP RFC , I donβt see anything, but I want to make sure that I did not miss anything.
Is there a Restart command in FTP - will it work?
Adding
Having received Brian Bondi, answer below , I wrote a Stream class, read-only, which wraps FTP. It supports Seek () and Read () operations on a resource that is read via FTP, based on the REST verb.
Find it http://cheeso.members.winisp.net/srcview.aspx?dir=streams&file=FtpReadStream.cs
This is pretty slow for Seek (), because setting up a data socket is time consuming. Best results come when you port this stream to a BufferedStream .
source share