fluid-ws-java-client/src/main/java/com/fluidbpm/ws/client/v1/user/UserClient.java
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);
        }
    }
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.

@param userParam The user to get the gravatar for.
@param sizeParam The pixel dimension for the image.

@return JPEG image bytes.