protected InputStream getBinaryRequestPayloadStreamWithoutQueryParams(SignableRequest<?> request) {
        try {
            InputStream is = request.getContentUnwrapped();
            if (is == null)
                return new ByteArrayInputStream(new byte[0]);
            if (!is.markSupported())
                throw new SdkClientException("Unable to read request payload to sign request.");
            return is;
        } catch (AmazonClientException e) {
            throw e;
        } catch (Exception e) {
            throw new SdkClientException("Unable to read request payload to sign request: " + e.getMessage(), e);
        }
    }
Returns the request's payload contents as binary data, without processing
any query string params (i.e. no form encoding for query params).

@param request
           The request
@return The request's payload contents as binary data, not including any
        form encoding of query string params.
aws-java-sdk-core/src/main/java/com/amazonaws/auth/AbstractAWSSigner.java