This method will convert a ByteArray to a file, and saves it to the path
: the ByteArray
: the path where the ByteArray should be saved