Usage of IOUtils for copying the file to output. Prevents storing the entire file in memory (thanks @matthijsln). Spaces