How to gzip and base64 encode a value of a variable

Hi @jency.stella19 . Thank you for helping. In need to zip the value of a variable inside the body. It is already decoded but need to be zipped as well.
Thank you for helping.
Kind regards
Stephan