Binary.From
This topic applies to the Power Query Formula Language which can be used with Power Query and Power BI Desktop to build queries that mashup data. See the list of function categories.
Returns a binary value from the given value.
Binary.From(Value as any, optional encoding as nullable number) as nullable binary
| Argument | Description |
|---|---|
| value | A binary value from the text representation. For more information, see Binary.FromText. |
| optional encoding | The encoding option to apply. |
Binary encoding
BinaryEncoding.Base64 = 0;
BinaryEncoding.Hex = 1;
If the given value is null, Binary.From returns null. If the given value is binary, the same value is returned.
Values of the following types can be converted to a binary value:
If value is of any other type, an error is returned.
Binary.From("1011")equals Binary.FromText("1011", BinaryEncoding.Base64)
Show: