Tag Archives: json

Json: sending/receiving Binary Data

You cannot just send raw binary data in JSON. You need to do a conversion first. The general way to encode binary data to a String is to use an implementation of Base64 encoding. Encode: String Base64.encodeToString(byteArray, Base64.DEFAULT); Decode: byte … Continue reading

Posted in Coding, Java | Tagged , , | Leave a comment