title: springboot InputStream
body: <p>I have a controller</p>
  
  <pre><code>void upload(@RequestParam(value="file", MultiPartFile file, @RequestParam(value = "content", required = false) InputStream stream){}
  </code></pre>
  
  <p>I never get a handle to InputStream when user uploads a file through Stream.</p>
  
  <p>How do i configure that?</p>
  
  <p>The normal file upload works just fine.
  I am sending Bzip2 content to upload and multipart default enabled in springboot.</p>
  
  <p>I do get this error.</p>
  
  <blockquote>
    <p>Caused by: java.lang.IllegalArgumentException: Could not retrieve
    InputStream for class path resource [BZh91AY&amp;SY90WT�A�%L
    !���!��9D�����ܑN�$�L��]:</p>
    
    <p>at
    org.springframework.beans.propertyeditors.InputStreamEditor.setAsText(InputStreamEditor.java:77)
    at
    org.springframework.beans.TypeConverterDelegate.doConvertTextValue(TypeConverterDelegate.java:449)
    at
    org.springframework.beans.TypeConverterDelegate.doConvertValue(TypeConverterDelegate.java:422)
    at
    org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:195)
    at
    org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:107)
    at
    org.springframework.beans.TypeConverterSupport.doConvert(TypeConverterSupport.java:64)</p>
  </blockquote>