readFile2BytesByChannel

open fun readFile2BytesByChannel(filePath: String): Array<Byte>

Return the bytes in file by channel.

Return

the bytes in file

Parameters

filePath

The path of file.

open fun readFile2BytesByChannel(file: File): Array<Byte>

Return the bytes in file by channel.

Return

the bytes in file

Parameters

file

The file.