Sintaxe
M
Text.FromBinary(binary as nullable binary, optional encoding as nullable number) as nullable textParâmetros
- binarynullable binaryObrigatório
Dados binários a serem decodificados.
MbinaryData- encodingnullable numberOpcional
Codificação usada na conversão (
TextEncoding.Type).
Retorna
nullable textExemplo
M
let
originalText = "Testing 1-2-3",
// Default UTF-8 binary
binaryData = Text.ToBinary(originalText),
// Convert binary to viewable Base64 string
encodedText = Binary.ToText(binaryData, BinaryEncoding.Base64),
// Decode back to text
decodedText = Text.FromBinary(binaryData),
result = [
OriginalText = originalText,
BinaryBase64 = encodedText,
DecodedText = decodedText
]
in
resultResultado
M
[
OriginalText = "Testing 1-2-3",
BinaryBase64 = "VGVzdGluZyAxLTItMw==",
DecodedText = "Testing 1-2-3"
]Mais informações
- Subgrupo
- Text