This method will convert a file to ByteArray
ByteArray of the file
: the Path where the file is located