how to convert file to byte 5b 5d in java

Solutions on MaxInterview for how to convert file to byte 5b 5d in java by the best coders in the world

showing results for - "how to convert file to byte 5b 5d in java"
Stefano
20 Jan 2021
1import java.io.File;
2import java.nio.file.Files;
3
4File file;
5// ...(file is initialised)...
6byte[] fileContent = Files.readAllBytes(file.toPath());
7