title: DotnetZip problems with silverlight(lightswitch)
body: <p>so I am having this problem that I can't figure out at the moment. I have already Grabbed the patched Ionic.zip from "<a href="http://dotnetzip.codeplex.com/workitem/14049" rel="nofollow">http://dotnetzip.codeplex.com/workitem/14049</a>".</p>
  
  <p>I tested my code on a non-silverlight project using the ionic.zip for regular c# and its working. But when modifying the code for silverlight(lightswitch) I keep on getting the 'IBM437' Error.</p>
  
  <p>Here is what my code looks like</p>
  
  <pre><code>void selectFileWindow_Closed(object sender, EventArgs e)
  {
      SelectFileWindow selectFileWindow = (SelectFileWindow)sender;
      string selectFileStream = sender.ToString();
      var parsedString = selectFileStream.Split(',');
  
      if (selectFileWindow.DialogResult == true &amp;&amp; (selectFileWindow.myStream != null))
      {
          foreach (FileStream myZippedStream in selectFileWindow.myStream)
          {
              string zippedLocation = myZippedStream.Name;
              var parsedLocation = zippedLocation.Split('\\');
              string fileName = parsedLocation[parsedLocation.Length - 1];
              //filename is equal to something like "myfile.zip"
              // We want to turn that to "myfile.txt)
              fileName = (fileName.Substring(0, fileName.Length - 3)) + "txt";
  
              using (FileStream fs = File.Create("c:\\temp\\gftTempFile.txt"))
              {
                  using (var ms = new MemoryStream())
                  {
                      //ReadOptions myOptions = new ReadOptions();
                      //myOptions.Encoding = System.Text.Encoding.UTF8;
                      //using (ZipFile myZip = ZipFile.Read(myZippedStream, myOptions))
                      // I have tried using the commentted code but it gives the same error
                      using (ZipFile myZip = ZipFile.Read(myZippedStream))
                      {
                          ZipEntry myEntry = myZip[fileName];
                          myEntry.Extract(ms);
  
                          ms.WriteTo(fs);
                          fs.Close();
  
                          ImportGift.importGift(fs, this.DataWorkspace);
  
                          try
                          {
                              fs.Close();
                              fs.Dispose();
                              ms.Close();
                              ms.Dispose();
                              File.Delete("c:\\temp\\gftTempFile.txt");
                          }
                          catch { }
                      }
                  }
              }
          }
          doneLoading = true;
      }
  }
  </code></pre>