Can I read a file from an FTP server, or an HTTP server, as a stream?
Posted
by Cheeso
on Stack Overflow
See other posts from Stack Overflow
or by Cheeso
Published on 2010-03-30T17:45:26Z
Indexed on
2010/04/02
22:33 UTC
Read the original article
Hit count: 259
Is it possible to read a file over FTP, as a System.IO.Stream ?
using (Stream s = Ftp.OpenFile(url....))
{
s.Seek(offset, SeekOrigin.Begin);
int n = s.Read(...);
}
and similarly, with HTTP ?
using (Stream s = Http.OpenFile(url....))
{
s.Seek(offset, SeekOrigin.Begin);
int n = s.Read(...);
}
© Stack Overflow or respective owner