ファイルをbyte値に変換
public static byte[] getFile(String fileName) throws IOException{
// ファイルシステム(デフォルト)の取得
FileSystem fileSystem=FileSystems.getDefault();
Path path=fileSystem.getPath(fileName);
System.out.println("path="+path);
// ファイルをbyte[]に変換
byte[] bytes=Files.readAllBytes(path);
return bytes;
}