Text.ZLibDecompress
-------------------

Decompresses the given data using lib.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Text](component_Text.md) | [15.5](newinversion155.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "Text.ZLibDecompress"; Input; InputEncoding; Output { ; FileName or Encoding; Flags } ) 

**MBS**( **"Text.ZLibDecompress";** /\* Decompresses the given data using lib. \*/  
**$Input**; /\* The compressed data.   
Can be a container value, hex or base64 text. \*/   
**$InputEncoding**; /\* The input encoding.  
If you pass text as input, you can pass here Hex or Base64.e.g. "Base64" \*/   
**$Output**; /\* How to package the output.  
Can be Text, Hex, Base64 or Container.e.g. "Text" \*/   
**$FileName or Encoding**; /\* Optional; For a container as output the file name to use.  
For a text output the text encoding.e.g. "UTF-8" \*/   
**$Flags**) /\* Optional; Pass 1 for raw compression. \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| Input | The compressed data.    Can be a container value, hex or base64 text. |  |  |
| InputEncoding | The input encoding.   If you pass text as input, you can pass here Hex or Base64. | "Base64" |  |
| Output | How to package the output.   Can be Text, Hex, Base64 or Container. | "Text" |  |
| FileName or Encoding | For a container as output the file name to use.   For a text output the text encoding. | "UTF-8" | Optional |
| Flags | Pass 1 for raw compression. |  | Optional |

### Result

Returns data or error.

### Description

Decompresses the given data using lib.  
Can optional do raw zlib without header and checksum.  
### Examples

Decompress compressed data:

 MBS ( "Text.ZLibDecompress"; "eNrzSM3JyVfwAJPh+UU5KRA2AGH1CEU="; "Base64"; "Text"; "UTF-8")  
<small>  
Example result: Hello Hello World Hello</small>### See also

- [Text.ZLibCompress](TextZLibCompress.md)

### Release notes

- **Version 15.5**
    - Added [Text.ZLibCompress](https://www.mbsplugins.eu/TextZLibCompress.shtml) and [Text.ZLibDecompress](https://www.mbsplugins.eu/TextZLibDecompress.shtml) functions.

### Blog Entries

- [New in MBS FileMaker Plugin 15.5](https://www.mbsplugins.de/archive/2025-11-25/New_in_MBS_FileMaker_Plugin_15/monkeybreadsoftware_blog_filemaker)
- [Neues MBS Plugin 15.5 für Claris FileMaker](https://www.mbsplugins.de/archive/2025-11-18/Neues_MBS_Plugin_155_für_Clar/monkeybreadsoftware_blog_filemaker)
- [MBS Plugin 15.5 for Claris FileMaker](https://www.mbsplugins.de/archive/2025-11-18/MBS_Plugin_155_for_Claris_File/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 15.5pr3](https://www.mbsplugins.de/archive/2025-10-13/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 9th October 2025 , last changed 10th October 2025

  
[Text.ZLibCompress](TextZLibCompress.md) - [TextView.AppendStyledText](TextViewAppendStyledText.md)

[HTML Version](TextZLibDecompress.shtml)