Beispiel #1
0
 public static void UnzipByteArray(byte[] bytes, string source, string destination)
 {
     try
     {
         var path = Path.Combine(source, "temp.zip");
         File.WriteAllText(path, System.Text.Encoding.UTF8.GetString(bytes));
         ZipFile.ExtractToDirectory(path, destination);
         if (File.Exists(path))
         {
             File.Delete(path);
         }
     }
     catch (IOException exception)
     {
         throw new EngineExceptionDto
               {
                   Report = JavaEngineReportExceptionFactory
                            .GenerateReportForUnzipByteArray(exception, source, destination)
               };
     }
 }