ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

Codeunit "Base64 Helpers"

Open ftornero9 opened this issue 7 years ago • 0 comments

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

ftornero9 avatar Aug 11 '19 07:08 ftornero9