Changes for page Base64 encoding
Last modified by Danniar Firdausy on 2024/09/17 21:22
From version 7.1
edited by eMagiz
on 2022/05/17 08:52
on 2022/05/17 08:52
Change comment:
There is no comment for this version
To version 16.1
edited by Erik Bakker
on 2023/01/23 09:01
on 2023/01/23 09:01
Change comment:
There is no comment for this version
Summary
-
Page properties (5 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,0 +1,1 @@ 1 +Base64 encoding - Parent
-
... ... @@ -1,0 +1,1 @@ 1 +WebHome - Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. marijn1 +XWiki.ebakker - Default language
-
... ... @@ -1,0 +1,1 @@ 1 +en - Content
-
... ... @@ -1,20 +1,9 @@ 1 -{{ html wiki="true"}}2 - <divclass="ez-academy">3 - <div class="ez-academy_body">1 +{{container}} 2 +{{container layoutStyle="columns"}} 3 +(((Most of the time, you can use the standard tooling of eMagiz to manipulate the data so that it makes sense for the (external) party that receives the data. However, sometimes there are cases in which you need a little bit of extra complexity. This microlearning will explain one of those more complex scenarios. In this microlearning, we will learn how to use base64 encoding on your (input) message. This functionality is beneficial when the message is not encoded, but you need to send the data encoded to the external party. 4 4 5 - <divclass="doc">5 +Should you have any questions, please get in touch with [[academy@emagiz.com>>mailto:academy@emagiz.com]]. 6 6 7 - 8 - 9 -= Base64 encoding = 10 - 11 -Most of the time, you can use the standard tooling of eMagiz to manipulate the data so that it makes sense for the (external) party that receives the data. However, sometimes there are cases in which you need a little bit of extra complexity. This microlearning will explain one of those more complex scenarios. In this microlearning, we will learn how to use base64 encoding on your (input) message. This functionality is beneficial when the message is not encoded, but you need to send the data encoded to the external party. 12 - 13 -Should you have any questions, please get in touch with academy@emagiz.com. 14 - 15 -* Last update: August 26th, 2021 16 -* Required reading time: 5 minutes 17 - 18 18 == 1. Prerequisites == 19 19 20 20 * Basic knowledge of the eMagiz platform ... ... @@ -31,8 +31,6 @@ 31 31 * The component in eMagiz needs a base64 encoded string as input 32 32 * Multiple times encoding and encoding in the same integration is **not** advisable 33 33 34 - 35 - 36 36 == 3. Base64 encoding == 37 37 38 38 Most of the time, you can use the standard tooling of eMagiz to manipulate the data so that it makes sense for the (external) party that receives the data. However, sometimes there are cases in which you need a little bit of extra complexity. This microlearning will explain one of those more complex scenarios. In this microlearning, we will learn how to use base64 encoding on your (input) message. This functionality is beneficial when the message is not encoded, but you need to send the data encoded to the external party. ... ... @@ -44,7 +44,7 @@ 44 44 * The component in eMagiz needs a base64 encoded string as input 45 45 * Multiple times encoding and encoding in the same integration is **not** advisable 46 46 47 -The Base64 encode algorithm converts the original string into a base64 encoded string. Technically, it can be said that it converts eight-bit bytes into six-bit bytes. So when you have a string of ABC, you could manually convert this to an encoded format. You can find an excellent explanation of how it works [here ](https://base64.guru/learn/base64-algorithm/encode). Luckily for us, eMagiz will do all the heavy lifting, and we do not have to take out pen and paper.34 +The Base64 encode algorithm converts the original string into a base64 encoded string. Technically, it can be said that it converts eight-bit bytes into six-bit bytes. So when you have a string of ABC, you could manually convert this to an encoded format. You can find an excellent explanation of how it works [[here>>https://base64.guru/learn/base64-algorithm/encode||target="blank"]]. Luckily for us, eMagiz will do all the heavy lifting, and we do not have to take out pen and paper. 48 48 49 49 In the remainder of this microlearning, we will look at how you could implement this logic within the eMagiz tooling. 50 50 ... ... @@ -54,7 +54,7 @@ 54 54 55 55 First, we need to navigate to the Create phase of eMagiz and open the flow in which we want to add this logic. Once you have opened your flow, you need to enter "Start editing" mode. This mode allows you to change the flow in question and add the logic to the transformation within the flow. When you have done so, it becomes time to add the base64 encode component to the flow. 56 56 57 - <p align="center">[[image:intermediate-data-handling-base64-encode--component.png||]]</p>44 +[[image:Main.Images.Microlearning.WebHome@intermediate-data-handling-base64-encode--component.png]] 58 58 59 59 At the component level, you need to define the input and output channel. Note that when the charset of the input message deviates from the UTF-8 default, you should specify the charset on the Advanced tab. 60 60 ... ... @@ -62,8 +62,6 @@ 62 62 63 63 Now that we know how to implement it, we can quickly look at possible use cases for this logic. We see this logic popping up mainly when dealing with attachments/files (i.e., pictures, pdf) within XML messages. 64 64 65 -===== Practice ===== 66 - 67 67 == 4. Assignment == 68 68 69 69 Look for places where you could use this logic to aid your integration process within your (Academy) project. ... ... @@ -78,24 +78,18 @@ 78 78 * The component in eMagiz needs a base64 encoded string as input 79 79 * Multiple times encoding and encoding in the same integration is **not** advisable 80 80 81 - 82 - 83 83 == 6. Suggested Additional Readings == 84 84 85 85 If you are interested in this topic and want more information, please read the help text provided by eMagiz and the following links: 86 86 87 -* https://base64.guru/learn/base64-algorithm/encode 88 -* https://www.base64encode.org/ 70 +* [[Encode Algorithm>>https://base64.guru/learn/base64-algorithm/encode||target="blank"]] 71 +* [[Base64 Encoding Online>>https://www.base64encode.org/||target="blank"]] 89 89 90 90 == 7. Silent demonstration video == 91 91 92 92 This video demonstrates how you could have handled the assignment and gives you some context on what you have just learned. 93 93 94 - <iframewidth="1280" height="720" src="../../vid/microlearning/intermediate-data-handling-base64-encode.mp4"frameborder="0"allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>77 +{{video attachment="intermediate-data-handling-base64-encode.mp4" reference="Main.Videos.Microlearning.WebHome"/}}))) 95 95 96 -</div> 97 - 98 -</div> 99 -</div> 100 - 101 -{{/html}} 79 +((({{toc/}}))){{/container}} 80 +{{/container}}