protected byte[] getBinaryRequestPayload(SignableRequest<?> request) {
        if (SdkHttpUtils.usePayloadForQueryParameters(request)) {
            String encodedParameters = SdkHttpUtils.encodeParameters(request);
            if (encodedParameters == null)
                return new byte[0];

            return encodedParameters.getBytes(UTF8);
        }

        return getBinaryRequestPayloadWithoutQueryParams(request);
    }
Returns the request's payload as binary data.

@param request
           The request
@return The data from the request's payload, as binary data.
aws-java-sdk-core/src/main/java/com/amazonaws/auth/AbstractAWSSigner.java