[ELY-43] Switch from ByteArrayIterator to ByteArrayInputStream