---
title: "ZipCompressor..::.Decompress Method (array&lt;Byte&gt;[]()[], Int32)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_ZipCompressor_Decompress_2_62611f73.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# ZipCompressor.Decompress Method (Byte[], Int32)
 
Decompresses given array which contains data compressed with the deflate algorithm (ZIP). Use this overload if you know the size of decompressed data to optimize a performance.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Shared Function Decompress ( _compressedData As Byte(), _decompressedSize As Integer _
) As Byte()
```
 
```csharp
public static byte[] Decompress(byte[] compressedData,int decompressedSize
)
```
 
### Parameters
 
 - compressedData
     - Type:  [System.Byte](http://msdn2.microsoft.com/en-us/yyb1w04y) []
A byte array which contains compressed data.

 - decompressedSize
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
A size of decompressed data. If you specify this parameter, Graphics Mill for .NET will be able to decompress the data in more memory-friendly way.
 
### Return Value
A byte array which contains decompressed data.
   
## See Also

### Reference

- [ZipCompressor Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_ZipCompressor.htm.md)
- [Decompress Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_ZipCompressor_Decompress.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
