ALAppExtensions
ALAppExtensions copied to clipboard
Codeunit "Base64 Helpers"
In the function ToBase64String inside the codeunit "Base64 Helpers" or in a new one to avoid breaking any code, add the parameter InserLineBreaks so the output is like that you get when using the dotnet equivalent.
Convert : DotNet "'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.System.Convert";
B64Fmt : DotNet "'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.System.Base64FormattingOptions";
B64file := Convert.ToBase64String(IOFile.ReadAllBytes(PdfFile), B64Fmt.InsertLineBreaks);
Regards