I tried gzip the bytes before feeding into multipart upload. I was able upload to S3 when “ByteArrayInputStream inputStream “ used as input stream, but it is not really co