Binary.FromText
Syntax
Binary.FromText(text as nullable text, optional encoding as nullable number) as nullable binary
About
Returns the result of converting text value text
to a binary (list of number
). encoding
may be specified to indicate the encoding used in the text value. The following BinaryEncoding
values may be used for encoding
.
- BinaryEncoding.Base64: Base 64 encoding
- BinaryEncoding.Hex: Hex encoding
Example 1
Decode "1011"
into binary.
Usage
Binary.FromText("1011")
Output
Binary.FromText("1011", BinaryEncoding.Base64)
Example 2
Decode "1011"
into binary with Hex encoding.
Usage
Binary.FromText("1011", BinaryEncoding.Hex)
Output
Binary.FromText("EBE=", BinaryEncoding.Base64)
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho