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