title: Attempting to test rest service with multipart file
body: <p>I am attempting to test a rest service I created. The service is a post.</p>
  
  <ol>
  <li>I wanted to create a file to pass the parameters(including a multi-part file).</li>
  <li>From there I am trying to call the service at this point.</li>
  </ol>
  
  <p>Pretty sure the service that doesn't work. But when I call rest Service.  I have a simple form that just passes in a couple values including the jpg.</p>
  
  <p>Here is the code.</p>
  
  <pre><code>HttpMessageConverter bufferedIamageHttpMessageConverter =   new ByteArrayHttpMessageConverter();
  restTemplate.postForObject("http://localhost:8080/sendScreeenAsPostCard",  uploadItem.getFileData(),  String.class));
  </code></pre>
  
  <p>My method signature is:</p>
  
  <pre><code>ResultStatus sendScreenAsPostcard( @RequestParam MultipartFile image, @RequestParamString userId) 
  </code></pre>
  
  <p>That is the error I am getting.</p>
  
  <blockquote>
    <p><code>Could not write request: no suitable HttpMessageConverter found for request type [org.springframework.web.multipart.commons.CommonsMultipartFile]</code></p>
  </blockquote>