File.Contents

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

Syntax

File.Contents(
   path as text,
   optional options as nullable record,
) as binary

Description

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

BI Gorilla Youtube Channel

Last update: August 17, 2023 | Contribute » | Contributors: Rick de Groot
Microsoft documentation: https://learn.microsoft.com/en-us/powerquery-m/file-contents
© 2023 BI Gorilla. All rights reserved. Content derived from Microsoft documentation is property of Microsoft Corp.