---
title: "ZipCompressor..::.Compress Method (array&lt;Byte&gt;[]()[])"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_ZipCompressor_Compress_1_a3d79294.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.Compress Method (Byte[])
 
Compresses a byte array with the deflate algorithm (ZIP).
 
**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 Compress ( _originalData As Byte() _
) As Byte()
```
 
```csharp
public static byte[] Compress(byte[] originalData
)
```
 
### Parameters
 
 - originalData
     - Type:  [System.Byte](http://msdn2.microsoft.com/en-us/yyb1w04y) []
An array of data which you need to compress.
 
### Return Value
An array of bytes which contains compressed data.
   
## See Also

### Reference

- [ZipCompressor Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_ZipCompressor.htm.md)
- [Compress Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_ZipCompressor_Compress.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
