Link to home
Create AccountLog in
Avatar of thenthorn1010
thenthorn1010Flag for United States of America

asked on

How to Compress a File Using C# During an FTP Transfer

I am attempting to write an application that will require the significant use of bandwidth to ftp a file from a limited network connection site, and I was wondering if there was a way to compress a file before you download it using C# .NET. I have seen mention of a compression method for SFTP, but I have not been able to find anything on compressing files using FTP by itself within a C# application. Could someone help me by providing example code for how to complete such a task, or point me to a site that would do that without having to purchase a third party library?

Any help that you could provide would be greatly appreaciated.
Avatar of Misbah
Misbah
Flag of United States of America image

do you have access or permission to host some app on the ftp server ?
if yes, then you can build a small server side tool, that you can call to compress the file before you download it.
ASKER CERTIFIED SOLUTION
Avatar of sentner
sentner
Flag of United States of America image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of thenthorn1010

ASKER

Dr-Hussain,

I do not have permissions to add a application to the server that I am attempting to FTP the files from.