Answers for "convert file to byte array"

0

how to convert file to byte

import java.io.File;
import java.nio.file.Files;

File file;
// ...(file is initialised)...
byte[] fileContent = Files.readAllBytes(file.toPath());
Posted by: Guest on January-01-1970

Code answers related to "convert file to byte array"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language