如何将字符串转换为GZIP Base64字符串?

我一直试图找出使用 GZIPOutputStream 等等但是没有成功理解它们。我想做的就是将一串字符 - 一串字符转换为GZIP Base64格式。我该怎么做?

I've been trying to figure out using GZIPOutputStream's and the like but have had no success with understanding them. All I want to do is convert a string of characters - "A string of characters" into a GZIP Base64 format. How can I do this?

编辑:
通过GZIP Base64格式,我的意思是首先使用GZIP压缩字符串,然后转换为Base64

By GZIP Base64 format, I mean the string is first compressed using GZIP, then converted into Base64



 1 条回答