Skip to content

Tag: file-io

How to write an S3 object to a file?

What’s the fastest way to write an S3 object (of which I have the key) to a file? I’m using Java. Answer While IOUtils.copy() and IOUtils.copyLarge() are great, I would prefer the old school way of looping through the inputstream until the inputstream returns -1. Why? I used IOUtils.copy() before but there was a specific use case where if I