Zlib_jll - I'm obviously doing it wrong

Can anyone show an actual example of a line using compress or decompress with Zlib_jll?

Zlib isn’t a particularly easy library to use. Your best bet is to look at the source code of one of the Julia packages that depends on it, e.g. CodecZlib.