Component: Base 64 (Calculation): Difference between revisions
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;"" to "width="10%" align="center" class="mtx-class-macrohead"" |
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead"" |
||
| Line 95: | Line 95: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Decode''' | ||
|- | |- | ||
| colspan="2" | Decodes a base64 encoded string into an array of bytes. Populates the BinaryData parameter array with the decoded data. Returns the number of decoded data bytes. | | colspan="2" | Decodes a base64 encoded string into an array of bytes. Populates the BinaryData parameter array with the decoded data. Returns the number of decoded data bytes. | ||
| Line 119: | Line 119: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Encode''' | ||
|- | |- | ||
| colspan="2" | Encodes an array of bytes into a base64 encoded string | | colspan="2" | Encodes an array of bytes into a base64 encoded string | ||
| Line 144: | Line 144: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Properties''' | ||
|- | |- | ||
|} | |} | ||
Latest revision as of 14:22, 13 July 2026
| Author | Matrix TSL |
| Version | 1.0 |
| Category | Calculation |
Base 64 component
Component to allow base 64 encoding and decoding. Sometimes when communicating raw binary data it is useful to perform base 64 encoding to ensure that none of your data bytes trigger any escape codes or other special case conditions. Base64 converts your binary data into readable data using standard ASCII characters so you can be fairly certain that the data you send is the same as the data that is received.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_Base64.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_Base64.fcfx
Detailed description
No detailed description exists yet for this component
Examples
Here is a basic example that shows how to convert data into base64 encoded data and visa versa.
Base64 Tests
Macro reference
Decode
Encode
| Encode | |
| Encodes an array of bytes into a base64 encoded string | |
| BinaryData | |
| Raw binary data array you wish to encode | |
| ByteCount | |
| Number of bytes of data to encode | |
| Return | |
Property reference
| Properties |