I have an XML file which contains long base64 string data. The size of the XML is roughly 6KB, I want to reduce the size of the XML to somewhere about 1.5 to 2KB. The text compression I am looking for should be lossless. I have tried to use a lot of libraries like GZIP, bzip2 and deflate for compression. Can some other path be taken to achieve better results
I would extract the XML contents, decode the Base-64 to binary, and create a binary format that can be losslessly converted back to the XML. Then I would try to compress that binary representation.
However if the decoded binary data is not itself very compressible, then you're not going to get to a factor of three to four compression.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.