You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@hop.apache.org by "bykhovets (via GitHub)" <gi...@apache.org> on 2025/05/21 12:07:41 UTC

[D] Compress string with zlib and encoded to base64 (hop)

GitHub user bykhovets created a discussion: Compress string with zlib and encoded to base64

Hi,

can you please advise how to compress string with zlib and encoded to base64? Is this possible in Hop?
We need to compress string( not file) in a flow and put it in to json. 


GitHub link: https://github.com/apache/hop/discussions/5343

----
This is an automatically sent email for users@hop.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@hop.apache.org


Re: [D] Compress string with zlib and encoded to base64 (hop)

Posted by "bamaer (via GitHub)" <gi...@apache.org>.
GitHub user bamaer edited a comment on the discussion: Compress string with zlib and encoded to base64

For base64, the easiest way will be through the Base64 encode and decode calculation types in the calculator transform.
For the compression: there's no transform that can do this afaik, and we don't ship zlib with Apache Hop, but you should be able to download it, add it to lib/core and use it in a script.  If you don't really need zlib, GZIPOutputStream is available in Java by default. 

GitHub link: https://github.com/apache/hop/discussions/5343#discussioncomment-13219629

----
This is an automatically sent email for users@hop.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@hop.apache.org


Re: [D] Compress string with zlib and encoded to base64 (hop)

Posted by "bamaer (via GitHub)" <gi...@apache.org>.
GitHub user bamaer added a comment to the discussion: Compress string with zlib and encoded to base64

the easiest way will be through the Base64 encode and decode calculation types in the calculator transform.

GitHub link: https://github.com/apache/hop/discussions/5343#discussioncomment-13219629

----
This is an automatically sent email for users@hop.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@hop.apache.org


Re: [D] Compress string with zlib and encoded to base64 (hop)

Posted by "bamaer (via GitHub)" <gi...@apache.org>.
GitHub user bamaer edited a comment on the discussion: Compress string with zlib and encoded to base64

for base64, the easiest way will be through the Base64 encode and decode calculation types in the calculator transform.

GitHub link: https://github.com/apache/hop/discussions/5343#discussioncomment-13219629

----
This is an automatically sent email for users@hop.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@hop.apache.org