如何压缩到我的服务器上的文件? [英] How to compress to files on my server ?

查看:177
本文介绍了如何压缩到我的服务器上的文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好......

我想备份服务器中的文件。但首先我想在服务器上压缩所有带zip或rar的文件。稍后我将使用C#Windows Forms中的ftp下载到此zip文件。怎么做 ?服务器库或类上是否有zip?

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 ?

推荐答案

GZipStream [ ^ ]类:查看代码示例。
There is the GZipStream[^] class: check out the code sample.


谢谢改变了我的想法这个主题。我首先使用ftp类下载到远程服务器中的所有文件,然后使用GZipStream压缩此文件。
Thanks Changed my mind this subject. I first downloading to all files in remote server with ftp class later this files compress with GZipStream.


这篇关于如何压缩到我的服务器上的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆