replacing open file and scan content, I choose to read raw data in byte directly from file by Paths.get(), and Files.readAllBytes()