public byte [ ] getGravatarForUser ( User userParam , int sizeParam ) { if ( userParam == null ) { return null ; } try { JSONObject gravatarJSONObj = this . postJson ( userParam , WS . Path . User . Version1 . getGravatarByUser ( sizeParam ) ) ; String base64Text = gravatarJSONObj . optString ( JSON_TAG_DATA , "" ) ; if ( base64Text == null || base64Text . isEmpty ( ) ) { return null ; } return UtilGlobal . decodeBase64 ( base64Text ) ; } //JSON problem... catch ( JSONException jsonExcept ) { throw new FluidClientException ( jsonExcept . getMessage ( ) , jsonExcept , FluidClientException . ErrorCode . JSON_PARSING ) ; } }
Retrieve the gravatar bytes for Fluid user .