Click here to Skip to main content
11,921,898 members (38,541 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# C#4.0 FTP
Hi Guys...
I want to backup files in my server. But first I want to compress to all files with zip or rar on server. Later I will download to this zip file with ftp in C# Windows Forms. How to do it ? Are there zip on server library or classes ?
Posted 20-Feb-13 22:10pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

There is the GZipStream[^] class: check out the code sample.
truvali89 21-Feb-13 3:43am
Thank you but this class only compress files in my computer. I want to compress files in remote server before dowloading.
CPallini 21-Feb-13 3:57am
I assumed you were coding for the server. If you have no control on the server software how could you perform the task?
truvali89 21-Feb-13 4:20am
I have no idea could I perform the task so Waiting for your suggestions
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Thanks Changed my mind this subject. I first downloading to all files in remote server with ftp class later this files compress with GZipStream.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 493
1 Dave Kreskowiak 285
2 Sergey Alexandrovich Kryukov 243
3 Richard MacCutchan 155
4 ppolymorphe 135
0 OriginalGriff 7,231
1 KrunalRohit 4,530
2 Sergey Alexandrovich Kryukov 3,356
3 George Jonsson 2,865
4 Suvendu Shekhar Giri 2,216

Advertise | Privacy | Mobile
Web04 | 2.8.151120.1 | Last Updated 21 Feb 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100