Handling of Base64-encoded information

AdministratorAdministrator Member, Moderator, Administrator Posts: 2,495
Handling of Base64-encoded information
This Codeunit is my take on handling Base64 encoded-information in payloads of Webservices. The goal of the Codeunit is to be able to identify a Base64-string inside a variable which content is unknown and to store the content in a BLOB-field.

The Codeunit contains the following functions:

isBase64(pVariant) -> This function is used to identify if a variable contains a Base64-encoded information
TryToStoreVariantAsBLOB(pVariant, pTempBLOB) -> This function is stores the Base64-encoded information into a Blob-Field.

RunExample() -> Have a look for this function if you want to understand the Codeunit
LoadExampleData(UnknownValue1, UnknownValue2) -> This function is used to load example data for the "RunExample"-function

https://mibuso.com/downloads/handling-of-base64-encoded-information

Discuss this download here.
Sign In or Register to comment.