C#使用#ziplib压缩和解压缩文件(2)

Unity 用ICSharpCode.SharpZipLib 解压zip文件遇到的坑 Unity在编辑器模式下运行解压网络下载的zip压缩包都没有问题,打包出来以后解压就不产生作用,找了好久才解决 一、引用的库文件:I18N.CJK.dll,I18N.dll ,I18N.West.dll ,Mono.Data.Tds.dll,System.Data.dll这五个DLL 加入到Plugins文件夹中。 这五个库文件内容所在地址为:XXX\Unity\Editor\Data\Mon... 阅读详情
#region 加压解压方法
/// <summary>
       
/// 功能:压缩文件(暂时只压缩文件夹下一级目录中的文件,文件夹及其子级被忽略)
       
/// </summary>
       
/// <param name="dirPath">被压缩的文件夹夹路径</param>
       
/// <param name="zipFilePath">生成压缩文件的路径,为空则默认与被压缩文件夹同一级目录,名称为:文件夹名+.zip</param>
       
/// <param name="err">出错信息</param>
       
/// <returns>是否压缩成功</returns>
        public bool ZipFile(string dirPath, string zipFilePath, out string err)
        {
            err
= "";
           
if (dirPath == string.Empty)
            {
                err
= "要压缩的文件夹不能为空!";
               
return false;
            }
           
if (!Directory.Exists(dirPath))
            {
                err
= "要压缩的文件夹不存在!";
               
return false;
            }
           
//压缩文件名为空时使用文件夹名+.zip
            if (zipFilePath == string.Empty)
            {
               
if (dirPath.EndsWith("\\"))
                {
                    dirPath
= dirPath.Substring(0, dirPath.Length - 1);
                }
                zipFilePath
= dirPath + ".zip";
            }

           
try
            {
               
string[] filenames = Directory.GetFiles(dirPath);
               
using (ZipOutputStream s = new ZipOutputStream(File.Create(zipFilePath)))
                {
                    s.SetLevel(
9);
                   
byte[] buffer = new byte[4096];
                   
foreach (string file in filenames)
                    {
                        ZipEntry entry
= new ZipEntry(Path.GetFileName(file));
                        entry.DateTime
= DateTime.Now;
                        s.PutNextEntry(entry);
                       
using (FileStream fs = File.OpenRead(file))
                        {
                           
int sourceBytes;
                           
do
                            {
                                sourceBytes
= fs.Read(buffer, 0, buffer.Length);
                                s.Write(buffer,
0, sourceBytes);
                            }
while (sourceBytes > 0);
                        }
                    }
                    s.Finish();
                    s.Close();
                }
            }
           
catch (Exception ex)
            {
                err
= ex.Message;
               
return false;
            }
           
return true;
        }

       
/// <summary>
       
/// 功能:解压zip格式的文件。
       
/// </summary>
       
/// <param name="zipFilePath">压缩文件路径</param>
       
/// <param name="unZipDir">解压文件存放路径,为空时默认与压缩文件同一级目录下,跟压缩文件同名的文件夹</param>
       
/// <param name="err">出错信息</param>
       
/// <returns>解压是否成功</returns>
        public bool UnZipFile(string zipFilePath, string unZipDir, out string err)
        {
            err
= "";
           
if (zipFilePath == string.Empty)
            {
                err
= "压缩文件不能为空!";
               
return false;
            }
           
if (!File.Exists(zipFilePath))
            {
                err
= "压缩文件不存在!";
               
return false;
            }
           
//解压文件夹为空时默认与压缩文件同一级目录下,跟压缩文件同名的文件夹
            if (unZipDir == string.Empty)
                unZipDir
= zipFilePath.Replace(Path.GetFileName(zipFilePath), Path.GetFileNameWithoutExtension(zipFilePath));
           
if (!unZipDir.EndsWith("\\"))
                unZipDir
+= "\\";
           
if (!Directory.Exists(unZipDir))
                Directory.CreateDirectory(unZipDir);

           
try
            {
               
using (ZipInputStream s = new ZipInputStream(File.OpenRead(zipFilePath)))
                {

                    ZipEntry theEntry;
                   
while ((theEntry = s.GetNextEntry()) != null)
                    {
                       
string directoryName = Path.GetDirectoryName(theEntry.Name);
                       
string fileName = Path.GetFileName(theEntry.Name);
                       
if (directoryName.Length > 0)
                        {
                            Directory.CreateDirectory(unZipDir
+ directoryName);
                        }
                       
if (!directoryName.EndsWith("\\"))
                            directoryName
+= "\\";
                       
if (fileName != String.Empty)
                        {
                           
using (FileStream streamWriter = File.Create(unZipDir + theEntry.Name))
                            {

                               
int size = 2048;
                               
byte[] data = new byte[2048];
                               
while (true)
                                {
                                    size
= s.Read(data, 0, data.Length);
                                   
if (size > 0)
                                    {
                                        streamWriter.Write(data,
0, size);
                                    }
                                   
else
                                    {
                                       
break;
                                    }
                                }
                            }
                        }
                    }
//while
                }
            }
           
catch (Exception ex)
            {
                err
= ex.Message;
               
return false;
            }
           
return true;
        }
//解压结束
        #endregion
C#中实现压缩包(如ZIP)的解压功能 在C#中,将压缩包(如ZIP文件)解压缩可以通过多种方式实现,最常见和简便的方法是使用.NET Framework自带的命名空间中的类,这个命名空间从.NET Framework 4.5开始引入。以下是一个简单的示例,演示如何使用ZipFile类来解压ZIP文件:首先,确保你的项目是针对.NET Framework 4.5或更高版本,或者如果你的项目是.NET Core或.NET 5/6/7等较新版本,命名空间通常是可用的。 阅读详情

相关推荐

C# 中的文件压缩与解压:Zip 功能详解

通过以上的步骤,你现在可以使用 C# 来压缩和解压文件夹了。文件压缩不仅可以节省存储空间,还能方便文件的传输。文件压缩与解压是 C# 中一个非常实用的功能,它不仅简化了文件管理的操作,还提供了更高效、更便捷的解决方案。希望这篇俏皮可爱的指南能够帮助你掌握文件压缩与解压的技巧。记得在实践中不断尝试和完善,享受编程的乐趣!(注:实际上并未展示图片,如需进一步的帮助或有其他问题,随时告诉我哦!以上就是如何使用 C# 来压缩和解压文件夹的完整指南。希望这些详细的步骤和代码示例能帮助你轻松上手。

java专栏 1823

ICSharpCode.SharpZipLi 压缩、解压文件 附源码

http://www.icsharpcode.net/opensource/sharpziplib/有SharpZiplib的最新版本,本文使用的版本为0.86.0.518,支持Zip, GZip, BZip2 和Tar格式 我们需要dll 在官网上也有,也可以从百度网盘下载 好了,深入的大家还要多多研究,今天我们简单介绍一下 简单的 单文件、文件夹的压缩和解压 ...

898

21、数据压缩技术全解析

本文全面解析了数据压缩技术,包括无损压缩和有损压缩的原理及应用场景。详细介绍了ZIP压缩、音频压缩和图像压缩的实现方法,以及如何在.NET框架中进行操作。同时,文章还对比了不同压缩技术的特点,提出了优化建议,并展望了压缩技术的未来发展趋势。无论你是开发者还是技术爱好者,都能从中找到适合自己的压缩方案。

green的博客 104

c#中的解压缩

ZipDirectory是一个C#函数,用于将指定目录中的所有文件和子目录压缩成一个zip文件。这个函数使用了System.IO.Compression命名空间中的ZipArchive类。它使用ZipFile类的CreateFromDirectory方法来创建zip文件。这个示例将C:\Users\UserName\Documents\MyFolder目录中的所有文件和子目录压缩成一个名为MyFolder.zip的zip文件。首先获取要解压缩的文件名,然后调用UnZip方法来解压缩文件。

qq_35624605的博客 1983

泛微E9统一待办接口说明

需要第三方表单,在提交自己的流程后,通过【window.location.href=‘oa地址/workflow/request/ViewRequestOS.jsp?需要第三方表单,在提交自己的流程后,通过【window.location.href=‘oa地址/workflow/workflow/WfRefreshList.jsp’】通过中转页面与第三方系统对接,按照第三系统的验证方式开发中转页面中的程序。C)第三方根据相同的数据加密,结果一致就认证成功,打开流程。优点:可以灵活的对接各个系统。

泛微二次开发后端知识总结 6415

DJI MobileSDK运行实例代码教程(保姆级)坑踩完了

其中比较重要的是PackageName也就是我们应用的包名,在这里我们可以直接使用官方文档中的包名,com.dji.ImportSDKDemo,appname为:ImportSDKDemo,其他的可以随意。在C盘中根据路径先找到 “用户/admin/.gradle”下的.gradle文件夹,然后依次打开wrapper/dists文件夹,找到我们刚刚要下载的gradle版本名的文件夹。在Androidstudio中打开,选在打开项目选择文件下载后的保存路径(解压之后的),在打开项目后会自动下载gradle。

k1121568的博客 2864

C#使用#ziplib压缩和解压缩文件

要下载整个目录,一般方法是一个个文件下载或ftp工具 现在用SharpZipLib就能实现实时zip压缩下载整个目录 SharpZipLib提供了多种压缩算法的支持,纯csharp代码,参见 http://www.icsharpcode.net/OpenSource/SharpZipLib/default.asp 原理是通过递归方法将每个文件压缩到ZipOutputStream,然

白开水的专栏 899

239号资源-simulink仿真:MATLAB/Simulink教程(PDF文档)-----已提供下载资源

电网论文源程序擅长文章解读,论文与完整源程序,等方面的知识,电网论文源程序关注python,机器学习,计算机视觉,深度学习,神经网络,数据挖掘领域.电网论文源程序擅长文章解读,论文与完整源程序,等方面的知识,电网论文源程序关注python,机器学习,计算机视觉,深度学习,神经网络,数据挖掘领域.《《《《《《《《更多资源还请持续关注本专栏》》》》》》》《《《《《《《《更多资源还请持续关注本专栏》》》》》》》论文与完整源程序_电网论文源程序的博客-优快云博客。电网论文源程序-优快云博客。

LIANG674027206的博客 1076

利用#Develop内嵌的#ZipLib,轻松搞定.net下的解压缩

利用#Develop内嵌的#ZipLib,轻松搞定.net下的解压缩       #Develop是一个用于制作C#或者VB.NET的项目而设计的一个编辑器,而#ZipLib是它内嵌的一个制作.net下的解压缩软件的强大工具。关于#Develop这个软件,大家可以去它的中文网站(http://www.aspx.cn/comm/dotnetbbs/Forum.aspx?Forum_ID=14)下

zhf7878的专栏 2070

基于Sentinel-2(哨兵2)遥感卫星的植被覆盖度提取

基于Sentinel-2(哨兵2)遥感卫星的植被覆盖度提取 一、Sentinel-2简单介绍 哨兵-2系列卫星的主要载荷多光谱成像仪拥有13个谱段,从可见光到近红外再到短波红外,空间分辨率从10m到60m,能实现全所未有的陆地海洋监测水平。其幅宽高达290KM,且A、B双星组合,覆盖能力比美国Landsat8卫星强很多。目前哨兵-2A和哨兵-2B已经实现了5天的重访时间,即使在之前仅有单颗卫星时,...

weixin_44143671的博客 2万+

windows在使用ping 127.0.0.1时出现一般故障的解决方案

本文主要介绍了windows在使用ping 127.0.0.1时出现一般故障的解决方案,希望能对使用windows的同学们有所帮助。 文章目录 1. 问题描述 2. 解决方案

weixin_43178406的博客 7万+

利用#Develop内嵌的#ZipLib,轻松搞定.net下的解压缩 (转)

利用#Develop内嵌的#ZipLib,轻松搞定.net下的解压缩 (转)[@more@]利用#Develop内嵌的#ZipLib,轻松搞定.NET下的解压缩 #Develop是一个用于制作C#或者vb.net的项目而设...

cuibeng3549的博客 158

基于深度学习 YOLOv11 的快递包裹检测系统(Python + PySide6 界面 + 训练代码)

成为亟需优化的重要环节。随着电子商务的快速发展,物流行业面临着越来越大的压力,为了解决这些问题,我们提出了一种。目标检测算法,实现快递包裹的。的界面,供用户进行实时监控。本项目的主要目标是利用。

斌擎科技 764

C# 压缩解压文件

http://www.dotbbs.net/Topic-144.aspx  ICSharpCode.SharpZipLib.dll 是一个基于GNU的免费库文件,他的功能很强大。下载地址:http://www.icsharpcode.net/OpenSource/SharpZipLib/Download.aspx

ftcn10086的专栏 610

基于物联网技术设计的微型消防小车控制系统(STM32+ESP8266局域网)(181)

基于物联网技术的小微型消防车控制系统。通过远程控制功能,用户能够灵活操作消防车的行驶,方便快速抵达火灾现场。环境感知功能实时采集烟雾浓度、温湿度信息,为灭火决策提供科学依据。火源定位功能采用自动和手动两种模式,准确迅速地定位火源,并通过报警提示用户。灭火功能则根据火源定位结果,自动或手动启动干粉灭火器进行高效灭火。这些功能的结合实现了对小型火灾的全面应对,提升了消防效率与安全性,减少了火灾带来的损失。通过本项目的设计与实现,为消防领域提供了一种创新且实用的解决方案。

3084

手把手教你学Simulink--控制策略与算法的DC-DC变换器领域仿真领域建模实例:基于Simulink实现一个双闭环控制Buck变换器的仿真建模

目录主要步骤1. 前期准备2. 构建Buck变换器模型3. 定义双闭环控制器4. 设置参考电压和反馈回路5. 实现双闭环控制器逻辑6. 仿真参数设置7. 运行仿真与结果分析示例整合代码片段1. Simulink模型2. 双闭环控制器参数调节3. 仿真结果分析总结双闭环控制是一种常见的控制策略,广泛应用于电力电子系统(如DC-DC变换器)中。它通过内外两个环路的协同工作,分别控制系统的动态性能和稳态性能。对于Buck变换器,通常采用电流内环和电压外环的双闭环控制结构。以下是一个手把手教程,帮助你基于Simul

MHD0815的博客 327

c# 下怎么使用zlib/gzip压缩和解压缩?(GALGAME和Flash使用的压缩格式)

c# 下怎么使用zlib? zlib是开源的压缩格式 源代码和DLL可以去http://www.zlib.net/ bzip2是建立在libbzip2 破解GALGAME时候很多人发现 许多游戏系统都采用这种压缩格式 甚至Flash格式版本6以后,增加了可压缩选项,用的是ZLib压缩 我今天看过金山词霸2009 毫无疑问的使用ZLib和bzip2 那么编写解压...

bulote 203

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

利用#ZipLib,完成C#下的解压缩

 ICSharpCode.SharpZipLib.dll是一个压缩的类库,似乎不是微软提供的1.BZip2     加入ICSharpCode.SharpZipLib.dll的引用,在#Develop的安装目录下的/SharpDevelop/bin目录下。然后在程序中使用using语句把BZip2类库包含进来。 压缩:使用BZip2的静态方法Compress。     它的第一个参数是所要压缩

784

锂电池充电器电路设计 里面有电路

锂电池充电器电路设计 里面有电路 3.7V升压到5V电路设计。

文档:亲测可用解决vnc灰屏,黑屏,鼠标大黑叉情况

主要解决vnc-viewer灰屏,黑屏,鼠标大黑叉等现象,详细见文档。

使用ICSharpCode.SharpZipLib.dll实现在线解压缩

 ICSharpCode.SharpZipLib.dll 是一个基于GNU的免费库文件,他的功能很强大。下载地址:http://www.icsharpcode.net/OpenSource/SharpZipLib/Download.aspx下面是对#ZipLib进行.net下的解压缩的方法的介绍。1.BZip2加入ICSharpCode.SharpZipLib.dll的引用,在

yszwn的专栏 982

华为的C语言编程规范.pdf

华为技术有限公司内部技术规范。本规范制定了编写C语言程序的基本原则、规则和建议。从代码的清晰、简洁、可测试、安全、程序效率、可移植各个方面对C语言编程作出了具体指导。

ICSharpCode.SharpZipLib 压缩

ICSharpCode.SharpZipLib.dll 是一个基于GNU的免费库文件,他的功能很强大。 下载地址:http://www.icsharpcode.net/OpenSource/SharpZipLib/Download.aspx 下面是对#ZipLib进行.net下的解压缩的方法的介绍。 1.BZip2 加入ICSharpCode.SharpZipLib.dll的引用,在#De...

weixin_33763244的博客 138

(转)在.net中实现压缩多个文件为.zip文件(转载:http://www.cnblogs.com/windzhang)...

这段时间一直在做一个网站,其中遇到了一个问题,就是在服务器端压缩多个服务器端的文件,然后在供客户下载。说白了就是用户上传了多个文件,然后别的用户可以点击批量下载这些文件。我要做的就是实现把这些文件压缩之后供用户下载。我首先想到的是.Net提供的GZipStream类,翻了一下书才发现GZipStream没有提供加压多个文件的方法,需要自己定义,这样解压也只有使用自己的...

adraqw3976的博客 156

在.net中实现压缩多个文件为.zip文件

这段时间一直在做一个网站,其中遇到了一个问题,就是在服务器端压缩多个服务器端的文件,然后在供客户下载。说白了就是用户上传了多个文件,然后别的用户可以点击批量下载这些文件。我要做的就是实现把这些文件压缩之后供用户下载。我首先想到的是.Net提供的GZipStream类,翻了一下书才发现GZipStream没有提供加压多个文件的方法,需要自己定义,这样解压也只有使...

weixin_30917213的博客 338

在.net中实现压缩多个文件为.zip文件 【转】

这段时间一直在做一个网站,其中遇到了一个问题,就是在服务器端压缩多个服务器端的文件,然后在供客户下载。说白了就是用户上传了多个文件,然后别的用户可以点击批量下载这些文件。我要做的就是实现把这些文件压缩之后供用户下载。我首先想到的是.Net提供的GZipStream类,翻了一下书才发现GZipStream没有提供加压多个文件的方法,需要自己定义,这样解压也只有使用自己的程序才可以。这...

weixin_30487701的博客 189
上一篇: C#使用#ziplib压缩和解压缩文件
下一篇: Sed学习笔记
rr白开水
博客等级 码龄19年 11粉丝 0原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值