Binary.InferContentType

The function returns a data record with the field Content.Type, which specifies the MIME-type inferred from the content. In the case where the inferred content type is text/* and an encoding code page...

Syntax

Binary.InferContentType(source as binary) as record

About

The function returns a data record with the field Content.Type, which specifies the MIME-type inferred from the content. In the case where the inferred content type is text/* and an encoding code page is identified, the function will also return the field Content.Encoding, indicating the encoding used for the content stream. If the inferred content type is text/csv and the format is delimited, the function will include the field Csv.PotentialDelimiter, which contains a table for analyzing potential delimiters in the CSV file. Similarly, if the inferred content type is text/csv and the format is fixed-width, the function will include the field Csv.PotentialPositions, which contains a list for analyzing potential positions of fixed-width columns in the CSV file.