Version: 4.4.2.3
Easily add comprehensive, secure FTP to any .NET application or service.

Retrieving a File as a Stream

Problem:

The developer wishes to download a file with direct access to the data as it is received. The application must:

  • Expose the file data as a Stream in real-time
  • Show transfer progress
  • Include file and interface session logging
  • Allow restarts and aborts
 

Solution:

With the PowerTCP FTP component, applications can perform all these tasks and more. The Stream Get sample demonstrates how to download a file into a Stream, while providing progress statistics during the transfer.

C#, VB.NET and VC++ versions of this sample are included in the PowerTCP FTP for .NET installation. To download this sample with additional product-specific samples and documentation, see the following:

PowerTCP FTP for .NET

See all samples for PowerTCP FTP for .NET