Ionic Zip Library v1.9.1.6
CompressString Method (s)
Reference ► Ionic.Zlib ► ZlibStream ► CompressString(String)
Compress a string into a byte array using ZLIB.
![](collapse_all.gif)
![](collapse_all.gif)
- s (String)
- A string to compress. The string will first be encoded using UTF8, then compressed.
![](collapse_all.gif)
The string in compressed form
![](collapse_all.gif)
Uncompress it with UncompressString(array<Byte>[]()[][]).
![](collapse_all.gif)