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
Compression of XML containing base64 data
593 Views Asked by hkm At
1
There are 1 best solutions below
Related Questions in XML
- Postgres && statement Error in Mybatis Mapper?
- Sorting items after building an XML feed?
- C# XML ModelBinding - ASP.NET Core 8 Web API - required field not found
- How can I create an automatic table of contents in docx without the text being bold?
- Odoo 16 Make Fields Readonly Using XPath
- Using similar tags for different objects in XML
- Android Studio problem like gradle sync project failed and plugin error, version 2023.2.1 Iguana
- error: cannot find symbol View root = inflater.inflate(R.layout.toolbar, parent, false);
- Android camera application restriction to 12 mp
- Azure Data Factory Copy Activity Only Importing First Row of XML file
- I am not able to remove space below the navigation view icon in android studio. What;s wrong with code?
- Field can be converted to a local variable ,convert field to local variable in onCreate method
- Deserialize XML with optional different name
- Retrieve tags from xml using python
- Getting attribute from xml and printing it error
Related Questions in BASE64
- How to use custom font during html to pdf conversion?
- Converting img src data to octet-stream
- System.FormatException: Entry is not valid Base64 string
- GitLab "Upload a File" API returns "file is invalid" after POST
- Adding a reset button for my digital signature
- I have a problem with decoding from base64
- Facing decryption error while decrypting encrypted payload using RSA Cipher Algorithm for GST and E-Way Bill authentication
- Base 64 : Illegal base64 character 3 Exception
- Media Recorder API encoding audio/mp4 stream to base64 string
- React Native preview Base64 encoded files
- Decoding base64 img in react getting error
- Trouble with HMAC Signature Verification Between Go and PHP for Encrypted URL
- How to read a .bin file and display the extact content of it in a table cell?
- Unable to decrypt Zoom AppContext - InvalidTag Error
- I cannot get Gmail to Base64decode correctly
Related Questions in GZIP
- How to create an improperly closed gzip file using python?
- HTTP/2 POST requests with compressed responses failing ERR_HTTP2_PROTOCOL_ERROR 200 (OK)
- Compress gzip/Deflate string with golang
- Missing System.IO.Compression.Native.dll in .NET 8 leads to error when using GZipStream
- How to decompress the contents of a var to another var?
- Why response body not compressed when use webtestclient?
- incorrect header check while implementing GZIP in spring boot REST APIs
- Extract gz files within gz files in Python
- aws s3 cp emr stdout.gz file as txt encoding issue
- .gz archive have the content-type identified wrong?
- Error in reading .gz file in python using gzip
- Error BadGzipFile when read gz file via python gzip
- zcat or gzip -dc taking more time while searching the string in 48364 files
- Kotlin Gzip String not working as expected
- Is the DEFLATE compression algorithm in ZIP and GZip formats based on LZ77 or LZSS?
Related Questions in BZIP2
- BSPatch Algorithm related queries
- How to build CPython with static libbz2
- in winhex i am trying to locate data size of a bzip2 compressed file?
- How to save a csv as bzip2 in R, either within fwrite or after saving the csv using fwrite
- ModuleNotFoundError: No module named '_bz2' in Google Cloud Workstation
- Getting error bz2 module requires libbz2 >= 1.0.0 while compiling php 8.1.13
- Cannot change the compression level for BZIP2 with Tar
- How to extract more than 900,000 bytes using SharpZipLib BZip2
- Parallel bzip2 decompression scan may fail?
- Spark Bzip2 compression ratio is not efficient
- BZip2 "selectorMtf value too big" error when decompressing
- Getting 'blockstore error' when running test validator for solana
- Picking compression algorithm for low-memory device - what works without being entirely in memory?
- Python3 x-bzip2 StreamingObject reading in chunks and processing out of memory
- Is it possible to continue bzip2 decompressing?
Related Questions in TEXT-COMPRESSION
- How can I enable text compression in Gen4 VPS Linux 4 CPU
- How are LSTMs used for data compression?
- How can i save Scrapy logs in gzip after scrapping without using scripts in bash?
- Issues with a Reference Code for Running Canonical Huffman Code on Java
- compress the text text file full of integer[python]
- Blazor / ASP.NET Text Compression - Google speed test do not agree, why?
- How to get the same byte Array after stored it as String?
- Compress Data in JavaScript and send it to Flask Server
- Compression of XML containing base64 data
- What compression is used in txt file
- Text compressing - Assembly Language
- log module with pre-allocated memory
- Canonical Huffman Encoder : Contents of Encoded Bitstream
- Encode/Decode a given string on a shared given (non standard) charset in a minimal byte array
- LZW compression on text
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
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.