Updated on

File.Contents is a Power Query M function that reads the contents of a file at a specified path as binary data. The function returns the binary content of the file.

Compatible with: Power BI Service Power BI Desktop Excel Microsoft 365


   path as text,
   optional options as nullable record,
) as binary


Returns the contents of the file, path, as binary. The options parameter is currently intended for internal use only.

Contribute » | Contributors: Rick de Groot
Microsoft documentation: