Compress text or encoded binary data using Zlib or Raw DEFLATE and output the result as Hex or Base64.