title: S3 warning: "No content length specified for stream data"
body: <p>I suddenly started seeing this warning message being logged, even though there were no changes in the usage of or on the underlying aws libs. I've been using aws-java-sdk version 1.6.9.1</p>
  
  <blockquote>
    <p>No content length specified for stream data.  Stream contents will be buffered in memory and could result in out of memory errors.</p>
  </blockquote>
  
  <p>This is howthe file is uploaded:</p>
  
  <pre><code>client.putObject(bucketName, key, new ByteArrayInputStream(data), new ObjectMetadata())
  </code></pre>
  
  <p>I suspect I may be seeing this because I'm not setting the content length on the ObjectMetadata object, but that's how it was before and no warning was being generated.</p>
  
  <p>Anyone has any insight as to why this warning message would suddenly start appearing?</p>
  
  <p>Thanks!</p>