Hello, I've been trying, and failing miserably, to convert a BLOB data type to and Base64 text string in order to send it through a web service.
Here's what I tried:
- A manual port of the official Base64 Convert codeunit (which is only available from BC16 or later). Available here: https://github.com/microsoft/ALAppExtensions/blob/main/Modules/System/Base64%20Convert/src/Base64ConvertImpl.Codeunit.al
- This other implementation by Kauffmann: ALCodeSamples/Base64Convert at master · ajkauffmann/ALCodeSamples · GitHub
In both cases, I get this error:
I tried to set the length of the string to 2048(max value), and then it tried to assign 39,000 characters. I will appreciate any help I can get.
I'm working in BC14.