Home Forums .NET libraries Xceed SFTP/FTP for .NET FTP / Compress / Encrypt a stream

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #20691 |

    I have tried to do everything
    Steps:
    1. File to stream
    2. Stream to compression
    3. Compression to Encryption
    4. Encryption to FTP

    have had no success, HELP!

    I do not want anything to hit the hardrive

    I have been able to move the stream from piece to piece but not
    able put ALL the pieces together at once can you help?

    I can not reverse the process in any manner

    Applies to Xceed FTP for .NET. Imported from legacy forums. Posted by atracy (had 2377 views)

    User (Old forums)
    Member
    Post count: 23064

    I’ve done the following with great success:

    MemoryStream objMemoryStream = new MemoryStream();

    m_objFtpClient.ReceiveFile( strRemoteFilePath, objMemoryStream );

    Of course much is omitted, i.e. connecting to the ftp server, setting the file name to download, but you should get the idea. Once you do the above ReceiveFile, the contents of the downloaded FTP file are completely in memory, and never touch the hard drive.

    You can do with as you please with the MemoryStream.

    I for example am downloading XML files, and parse them in memory, never having to save them to a hard drive location

    Thanks,
    Scott

    Applies to Xceed FTP for .NET. Imported from legacy forums. Posted by scott_merrill (had 3291 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.