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
File.Contents( 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.