readFile

fun readFile(file: File): ByteArray

This method will convert a file to ByteArray

Return

ByteArray of the file

Parameters

file

: the Path where the file is located