on 01-20-2014 12:58 PM
Hi all.
If I get an payload with where one of the fields has compressed data.
How would I uncompress the data?
BR
Kalle
Hi Kalle - As it's not the entire xml, i don't prefer writing a java mapping/adapter modue, instead i think you can write a simple udf and pass the compressed field as input to it.
Sample prog to decompress :
http://java2novice.com/java-collections-and-util/zip/decompress-byte-array/
http://stackoverflow.com/questions/16351668/compression-and-decompression-of-string-data-in-java
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If there is a requirement as such, then you will use a java mapping and use any java library to process the compressed data in a particular field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kalle,
XML Compression is binary XML (compact representation of XML). Compression is done on message level in AS2 adapter (as standard feature) and you have different algorithm to compress the data.
It is not common to compress only one field in XML, so please check if you want to uncompressed the whole XML or one field. Also check what algorithm is used to compress the data.
regards,
Harish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.