File.Contents

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

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.

Contribute » | Contributors: Rick de Groot
Microsoft documentation: https://learn.microsoft.com/en-us/powerquery-m/file-contents

2023-2024 © BI Gorilla. All rights are reserved. Information from Microsoft docs is property of Microsoft Corp. | Privacy Policy