<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://msmvps.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>I type what I feel : community server component</title><link>http://msmvps.com/blogs/anandn/archive/tags/community+server+component/default.aspx</link><description>Tags: community server component</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP2 (Build: 40407.4157)</generator><item><title>It's easy with XCeed ZIP component</title><link>http://msmvps.com/blogs/anandn/archive/2006/12/31/it-s-easy-with-xceed-zip-component.aspx</link><pubDate>Sun, 31 Dec 2006 12:54:00 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:461464</guid><dc:creator>anandn</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://msmvps.com/blogs/anandn/rsscomments.aspx?PostID=461464</wfw:commentRss><comments>http://msmvps.com/blogs/anandn/archive/2006/12/31/it-s-easy-with-xceed-zip-component.aspx#comments</comments><description>&lt;P&gt;I was on a lookout for a good component which automatically extracts a ZIP file located on the server. Finally, I found Xceed ZIP for .NET, which performs the task with only few lines of code. I managed to unzip even a file with 5 MB in size very easily. I'm posting a tutorial with code snippet to illustrate how easy it is to unzip a ZIP file. Please note that you should ZIP the file using WINZIP.&lt;/P&gt;
&lt;P&gt;You can easily extract the contents of a ZIP file on the server by following the steps given below. &lt;/P&gt;
&lt;P&gt;Please note that in order to work with the example you should install XCeed ZIP for .NET which is available for download (45 days trial) from &lt;A href="http://xceed.com/Zip_Net_Whatsnew.html"&gt;http://xceed.com/Zip_Net_Whatsnew.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Step - 1&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Copy the following DLL's to the BIN directory of your website. If there is no such directory, then you can create it&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Xceed.Compression.dll&lt;BR&gt;Xceed.Compression.Formats.dll&lt;BR&gt;Xceed.FileSystem.dll&lt;BR&gt;Xceed.Zip.dll&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;You can locate these DLL files from &lt;EM&gt;Program Files\Xceed Components\Bin\.NET&lt;/EM&gt; folder&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Step - 2&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Add the following code to the Page_Load() event&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Try&lt;BR&gt;Xceed.Zip.Licenser.LicenseKey = "ZINXX-XXXXX-XXXXX-XXXX"&lt;BR&gt;Dim zip As New ZipArchive(New DiskFile(Server.MapPath(".") &amp;amp; "\Test.zip"))&lt;BR&gt;Dim folder As New DiskFolder(Server.MapPath("."))&lt;BR&gt;zip.CopyFilesTo(folder, True, True)&lt;BR&gt;Response.Write("Files Unzipped Successfully")&lt;BR&gt;Catch err As Exception&lt;BR&gt;Response.Write(err.Message)&lt;BR&gt;Finally&lt;BR&gt;End Try&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;That's it. Execute the file and you will see a message "&lt;EM&gt;Files Unzipped Successfully&lt;/EM&gt;". You should see a new folder named Test with the required file inside the root of your domain. &lt;/P&gt;
&lt;P&gt;Please make sure to upload Test.Zip into the root directory before attempting to run the project&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=461464" width="1" height="1"&gt;</description><category domain="http://msmvps.com/blogs/anandn/archive/tags/anand+narayanaswamy/default.aspx">anand narayanaswamy</category><category domain="http://msmvps.com/blogs/anandn/archive/tags/community+server+quickly/default.aspx">community server quickly</category><category domain="http://msmvps.com/blogs/anandn/archive/tags/community+server+component/default.aspx">community server component</category><category domain="http://msmvps.com/blogs/anandn/archive/tags/unzip/default.aspx">unzip</category><category domain="http://msmvps.com/blogs/anandn/archive/tags/zip/default.aspx">zip</category><category domain="http://msmvps.com/blogs/anandn/archive/tags/xceed/default.aspx">xceed</category></item></channel></rss>