I have been a bit confused on how best to go about this.
The thing: I\'m creating a j2me mobile app that will send compressed data via HTTP to a web
Approach I: Top Criteria's: Compression, Security and Architectural design freedom
The perceivable best way to achieve data compression is to create custom language that is understandable by the mobile client and its server only. You can add next level compression to it by using GZIP / LZW or any other compression algorithm.
Pros:
Cons:
Example: In this link Opera Mini read section on Functionality.
.
Approach II: Top Criteria: Strict project timelines
For quick disbursement of the project use 3rd party compressors like GZIP and industry standard webservice content exchange formats like SOAP and JSON.
Pros:
Cons:
Example: http://developers.sun.com/mobility/apis/articles/wsa/
.
Edit: Some very useful links
I am not a J2ME developer but wanted to share my view as a Java developer. If you are communicating with your webserver then i am guessing that you will be calling a webservice(SOAP or REST). I did something similar with webservice for SOAP to compress the communication some time back. Here is what i followed. http://www.predic8.com/soap-compression-howto.htm