Wolverrum - 2010-03-23

// The simple use case
Stream Download(string host, string folder, string file, string user, string password)
{
FTPConnection c;
Stream s;

s = new MemoryStream();
c = new FTPConnection();
try
{
c.Open(host, user, password);
if (folder.Length > 0)
{
c.SetCurrentDirectory(folder);
}
c.GetStream(file, s, FTPFileTransferType.Binary);
c.Close();
s.Seek(0, SeekOrigin.Begin);
}
catch (Exception e)
{
}

return s;
}