title: 400 Error when doing Spring Rest Post
body: <p>I have a Spring Web service that I have to do a Post. This is the current signature.</p>
  
  <pre><code>ScreenResult sendScreenAsPostcard(@RequestParam String listOfRecipients, @RequestParam String message, @RequestParam String userId, @RequestParam String captcha, @RequestParam MultipartFile image)
  </code></pre>
  
  <p>A Flash application is calling this. I am using the front end and using Firebug to look at parameters. When I pass this. I get </p>
  
  <p>400 Bad Request.</p>
  
  <p>When I change the signature just to make sure I can hit it all,</p>
  
  <pre><code>ScreenResult sendScreenAsPostcard(@RequestBody string)
  </code></pre>
  
  <p>and print in the string. It hits the service and I believe it is able to read the parameters although I am not sure if it reads the multipart file accurately. My question is what I am doing wrong? </p>
  
  <p>The flash application is passing JSON.</p>
  
  <p>This is relevant part of the body.</p>
  
  <pre><code>Content-type: application/json Accept: application/json
  Content-Disposition: form-data; name="message"
  
  
  {"listOfRecipients":"","message":"","captcha":"","image":"RldTCBf+AAB4AAXcAAARlAAADAEAfxEEAAAACAAAAL8W4f0AAAEA2/0AAAAA/9n/2P/Y/+AAEEpGSUYAAQIBAEgASAAA/","userId":""}
  </code></pre>