Added file size to IOUtils.toByteArray in hopes of fixing heap space issue