файл java get bytes
File file = new File("./myfile.txt");
byte[] fileContent = Files.readAllBytes(file.toPath());
JavaBeast
File file = new File("./myfile.txt");
byte[] fileContent = Files.readAllBytes(file.toPath());