Archivo Java Obtenga 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());