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
589 Views Asked by hkm At
1
There are 1 best solutions below
Related Questions in XML
- Impose component restriction to a series of parsys-CQ
- Wrong xml being inflated android
- Shorten the XSD
- Writing/Overwriting to specific XML file from ASP.NET code behind
- Magento custom block. Can't get block's file
- Layout not shifting up when keyboard is open
- CSV to XML XSLT: How to quote excape
- Getting deeply embedded XML element values
- Saving FileSystemInfo Array to File
- how to apply templates within xsl:for-each
- Spring - configure Jboss Intros for xml with java config?
- Problems with implementing custom actionbar android
- Can Apache Ant be told to cache its XML files?
- Is Log4j2 xml configuration case sensitive?
- How to get a specific node value in XML Pull Parser
Related Questions in BASE64
- Regex to get vCard base64 string (C#)
- writing into file (Converting Base64 to Binary) values Using VFS and ESB 4.8.1
- Can I POST or PUT an image to Django RESTful API using $resource of AngularJs or rather javascript in general?
- Python base32 data decode
- Encode array to base64 in go
- Save Task<string> type to String giving Catastrophic failure
- How to read a Base64 string as a file, on server side, without saving it in web server, directly by PHP?
- Angular base64 video interpolation fail ($sce)
- Gmail API playground: Send method, converted MIME raw header not populating email fields on send
- Convert data to base64 encode in go
- Base64Decode to file - whats missing?
- How can i save base64 to image file on cordova / ionic or upload to server?
- How to save encoded Base64 strings from database, to files, on disk?
- PHP base64 encoding drops incorrect answer
- base64 image open in new tab with fancybox, instead of the classic "popup"
Related Questions in GZIP
- Convert JSON.gz to JSON in node js
- How can i read a json file in gzip?
- Does anyone know how to read gzip file(gzip in thr spoolSourceDirectory) in Flume process?
- Grep a gzipped file?
- Compress json array list in java(Spring mvc) and decompress it in javascript(angular js)
- Seeking on a gz connection is unpredictable
- How do I grep GZ files to extract PNG files?
- I want to create a script for unzip (.tar.gz) file via (Python)
- getting CRC error while decompressing a gzip file in python
- Delete specific line(pattern) from .gz file using python for large file size
- How do I link a gzipped version of a stylesheet?
- Glassfish4 gzip encoding issue (corrupted responses)
- Apache settings to send gzipped CSS/JS files to browser
- Open a gz file using Minizip Library
- gzip and pipe to output (performance consideration)
Related Questions in BZIP2
- C# How to get file/ copy file from a bzip2 (.bz2) file without extracting the file
- How to extarct contents of bz2 files - Hadoop
- Python BZ2 IOError: invalid data stream
- How do I compress with commons compress in memory?
- unzipping bzip file using bash
- ssh multiple commands appends question mark to file name
- Does bzip2 guarantee bitwise identical output for same input?
- decompress and compress to another format on the fly
- Is it possible to parallelize bz2's decompression?
- compression method for .dmg
- Python CRC-32 woes
- How to use bzip2 format in iOS? Apple tell me bzBuffToBuffDecompress is private APIs
- Processing a BZIP string/file in Scala
- How to efficiently parse large bz2 xml file in C
- Uncompressing bzip2 in an iOS app
Related Questions in TEXT-COMPRESSION
- Encode/Decode a given string on a shared given (non standard) charset in a minimal byte array
- LZW compression on text
- compress the text text file full of integer[python]
- Issues with a Reference Code for Running Canonical Huffman Code on Java
- Compressing a string, end result without line breaks?
- Compressing small piece of data
- Blazor / ASP.NET Text Compression - Google speed test do not agree, why?
- How are LSTMs used for data compression?
- What compression is used in txt file
- Compression of XML containing base64 data
- Canonical Huffman Encoder : Contents of Encoded Bitstream
- log module with pre-allocated memory
- What's the best practice for storing huge amounts of text (into a DB or as a file?), and what about compressing it?
- TEXT compression in python
- How can i save Scrapy logs in gzip after scrapping without using scripts in bash?
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 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.