Table of contents
TOC
Collapse the table of content
Expand the table of content

Binary.Compress

Owen Duncan|Last Updated: 4/19/2018
|
1 Contributor

Binary.Compress(binary as nullable binary, compressionType as number) as nullable binary

About

Compresses a binary value using the given compression type. The result of this call is a compressed copy of the input. Compression types include:

Value
Compression.GZip
Compression.Deflate

Example 1

Compress the binary value.

Binary.Compress(Binary.FromList(List.Repeat({10}, 1000)), Compression.Deflate)  
Equals: #binary({227, 226, 26, 5, 163, 96, 20, 12, 119, 0, 0})  
© 2018 Microsoft