unzip in a Xamazin Project does not work

Oct 10, 2013 at 9:20 PM
I have a Method in my app:
public void ExtractBilderZip()
    {

        string unzipziel = Path.Combine(documentsPath, "Bilder/");
                // wenn Bilder Verzeichnis nicht existiert erzeugen
                if (Directory.Exists(unzipziel)==false)
                {
                   
                    var directoryname = Path.Combine(documentsPath, "Bilder/");
                    Directory.CreateDirectory(directoryname);
                
                }
               
              
                string zipToUnpack = localPathB;  //Path and filename to my zipfile
                

                
                
                try
                {
                   
                   
                    using (ZipFile zip1 = ZipFile.Read(zipToUnpack))
                    {
                       
                        foreach (ZipEntry e in zip1)
                        {
                            e.Extract(unzipziel, ExtractExistingFileAction.OverwriteSilently);
                        }
                    }

                         
                }
                catch (System.Exception ex1)
                {
                    //System.Console.Error.WriteLine("exception: " + ex1);
                    for (int i = 0; i < 10; i++)
                    {
                        Toast.MakeText(this, "exception: " + ex1, ToastLength.Long).Show();
                    }
                }
            

            }
When running on a mobile device I allways get an error:

exception: System.ArgumentException: Path is empty at System.IO.Directory.CreateDirectory(Syszem.String path)[0x0000] in filename unknown 0
at ionic.zip.zipentry.internalExtract system.string basedir, system.io.stream outstream, system.string password 0x00000 in file unknown 0
Oct 23, 2013 at 7:33 PM
I am with the same problem do you managed to solve it or someone did?
Oct 23, 2013 at 8:49 PM
I solved my problem by use of a Class called ZipStorer which I found by googleing. I found it here: zipstorer.codeplex.com It is tiny and very easy to use!!

code snippet see also:
http://stackoverflow.com/questions/19314900/xamarin-ionic-zip-unzip-causes-error