Power Query
Search…
Binary.From

Binary.From

Creates a binary from the given value
function (optional value as nullable any, optional encoding as nullable any) as nullable any

Description

Returns a binary value from the given value. If the given value is null, Binary.From returns null. If the given value is binary, 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.

Category

Binary

Examples

Get the binary value of "1011".
1
Binary.From("1011")
Copied!
Binary.FromText("1011", BinaryEncoding.Base64)
Last modified 3yr ago