用ASP.Net實現在線壓縮和解壓縮(3)_.Net教程
推薦:Asp.net Ajax--Calendar控件使用簡介 Calendar控件是一個很簡單的控件,主要用來在頁面中提供日歷的選擇,其實現在已經有很多用javascript寫的日歷控件,但是Canlendar日歷控件能夠讓我們更快速地來實現這種效果,只需要進行
| // ---------------------------------------------- // 3. ZipClass.cs // ---------------------------------------------- using System; using System.IO; using ICSharpCode.SharpZipLib.Zip; using ICSharpCode.SharpZipLib.GZip; using ICSharpCode.SharpZipLib.BZip2; using ICSharpCode.SharpZipLib.Checksums; using ICSharpCode.SharpZipLib.Zip.Compression; using ICSharpCode.SharpZipLib.Zip.Compression.Streams; namespace WebZipUnzip System.IO.FileStream StreamToZip = new System.IO.FileStream(FileToZip,System.IO.FileMode.Open , System.IO.FileAccess.Read); public void ZipFileMain(string[] args) Crc32 crc = new Crc32(); s.SetLevel(6); // 0 - store only to 9 - means best compression foreach (string file in filenames) entry.DateTime = DateTime.Now; // set Size and the crc, because the information crc.Reset(); entry.Crc = crc.Value; s.PutNextEntry(entry); s.Write(buffer, 0, buffer.Length); } |
分享:ASP.NET備份恢復SqlServer數據庫備份SqlServer數據庫 核心技術: using System.Data.SqlClient; using System.IO; string SqlStr1 = "Server=(local);DataBase=master;Uid=sa;Pwd=&q
- asp.net如何得到GRIDVIEW中某行某列值的方法
- .net SMTP發送Email實例(可帶附件)
- js實現廣告漂浮效果的小例子
- asp.net Repeater 數據綁定的具體實現
- Asp.Net 無刷新文件上傳并顯示進度條的實現方法及思路
- Asp.net獲取客戶端IP常見代碼存在的偽造IP問題探討
- VS2010 水晶報表的使用方法
- ASP.NET中操作SQL數據庫(連接字符串的配置及獲取)
- asp.net頁面傳值測試實例代碼
- DataGridView - DataGridViewCheckBoxCell的使用介紹
- asp.net中javascript的引用(直接引入和間接引入)
- 三層+存儲過程實現分頁示例代碼
- 相關鏈接:
- 教程說明:
.Net教程-用ASP.Net實現在線壓縮和解壓縮(3)
。