Class ZipHelper

Implements helper methods for the zip class.

Inheritance
System.Object
ZipHelper
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.Commerce.Shared
Assembly: Mediachase.Commerce.dll
Version: 10.8.0
Syntax
[Obsolete("This just wraps the System.IO.Compression.ZipFile class with extension methods, use them directly instead. Will be remain at least until September 2016.")]
public static class ZipHelper

Methods

CreateZip(String, String)

Creates the zip.

Declaration
public static void CreateZip(string folder, string outputFile)
Parameters
Type Name Description
System.String folder

The folder.

System.String outputFile

The output file.

CreateZip_old(String, String)

Creates the zip_old.

Declaration
[Obsolete("Use CreateZip instead. Will remain at least until November 2016.")]
public static void CreateZip_old(string folder, string outputFile)
Parameters
Type Name Description
System.String folder

The folder.

System.String outputFile

The output file.

ExtractZip(String, String)

Extracts the zip.

Declaration
public static void ExtractZip(string zipFile, string destDir)
Parameters
Type Name Description
System.String zipFile

The zip file.

System.String destDir

The dest dir.

ExtractZip_old(String, String)

Extracts the zip_old.

Declaration
[Obsolete("Use ExtractZip instead. Will remain at least until November 2016.")]
public static void ExtractZip_old(string zipFile, string destDir)
Parameters
Type Name Description
System.String zipFile

The zip file.

System.String destDir

The dest dir.

GetFileFromArchive(String, String)

Gets the file from archive.

Declaration
public static byte[] GetFileFromArchive(string sArchivePath, string sFileName)
Parameters
Type Name Description
System.String sArchivePath

The s archive path.

System.String sFileName

Name of the s file.

Returns
Type Description
System.Byte[]