Click here to Skip to main content
12,884,951 members (29,997 online)
Rate this:
Please Sign up or sign in to vote.
See more: VB VB.NET
m unable to unzip a folder using ZIPPACKAGE of system.IO.packaging.
d folder consists of files in different formats like XML,XLS,HTM etc.
all i hv is dat i get d folder(in zipped format)in one of my local drives frm a common shared location & i directly copy d zipped folder 2 my local drive frm dere.
the size of the folder is approx 30 MB (hope dere's no issue related to the size).
i came 2 knw abt system.IO.packaging by Googling...n implemented d code by making sm relevant changes.
need urgent help.
Thnx in advance
Posted 20-Sep-12 21:22pm
Updated 20-Sep-12 23:05pm
Richard MacCutchan 21-Sep-12 3:28am
You will need to provide a lot more information than this if you expect any useful suggestions.
aryan_85 21-Sep-12 5:06am
do i need 2 paste d code?
aryan_85 21-Sep-12 7:13am
well...richard..u were quick enough to jst pass by leisurly & post d above comment...but not quick enough 2 post a solution..
Richard MacCutchan 21-Sep-12 8:56am
Strangely enough some of us here have other things to do with our time than worry about your problems. We answer questions in our own time with absolutely no cost to you. If you find that below the standard that you expect, then you are totally free to go elsewhere and pay for a proper service contract.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

I don't know about the ZIPPACKAGE. I'm using DotNetZip Library from CodePlex[^]. It is easy to use in C# or VB.NET and the examples are good.

For instance the follow code would unzip all files in a WinZip file (using the DotNetZip code)
Imports Ionic.Zip
Private Sub UnzipFile(filename As String, targetFolder As String, password As String)
    Using zip As ZipFile = ZipFile.Read(filename)
        If String.IsNullOrEmpty(password) Then
            zip.Password = password
        End If
    End Using
End Sub 
aryan_85 21-Sep-12 8:53am
thnx a lot martijn 4 d prompt help..
but i can't use a third party tool or library..
poor me..
jst 4 info purpose- came 2 knw dat ZIPPACKAGE works efficiently on only those files/ folders dat r zipped/compressed using ZIPPACKAGE itself..
anyways..thnx again..
Martijn Kok 21-Sep-12 8:56am
Good you discovered why ZIPPACKAGE wasn't working. I hope you find a good solution to work with zippackage.
aryan_85 25-Sep-12 2:58am
Martijn Kok 25-Sep-12 3:08am
Thanks :)

I have read it partally and it looks very promissing. I'm definitely going to test the demo code. Using Visual Studio components do have my preference over third party components.

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

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170424.1 | Last Updated 21 Sep 2012
Copyright © CodeProject, 1999-2017
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