Copying the contents of the issue minio/minio#7053 as this issue belongs to this repo.
putObject should take an OutputStream and not an InputStream. It works ok with IS, but it is not very professional (and misleading). In addition the SDK doc does not mention that one should close the IS (as it is done for getObject).
Copying the contents of the issue minio/minio#7053 as this issue belongs to this repo.
putObject should take an OutputStream and not an InputStream. It works ok with IS, but it is not very professional (and misleading). In addition the SDK doc does not mention that one should close the IS (as it is done for getObject).