I need to download file from FTP server and make some changes on it and upload it again to the same FTP using VB.NET.
Any help please. Thank you.
I need to download file from FTP server and make some changes on it and upload it again to the same FTP using VB.NET.
Any help please. Thank you.
If you want to just directly re-upload the file, simply pipe the download stream to the upload stream:
If you need to process the contents somehow, or if your need to monitor the progress, or both, you have to do it chunk by chunk (or maybe line by line, if it is a text file, that you are processing):
See also:
Some links:
VB.NET: http://www.codeproject.com/KB/IP/FtpClient.aspx
c#: http://www.c-sharpcorner.com/uploadfile/neo_matrix/simpleftp01172007082222am/simpleftp.aspx