i like to encode a java map of strings as a single base 64 encoded string. The encoded string will be transmitted to a remote endpoint and maybe manipulated by a not nice pe
Another possible way would be using JSON which is a very ligthweight lib. The the encoding then would look like this:
JSONObject jso = new JSONObject( map ); String encoded = new String(Base64.encodeBase64( jso.toString( 4 ).toByteArray()));