Page 1 of 1

Restriction on Size in base64_decode procedure

Posted: Tue Feb 28, 2023 10:46 am
by AlB247
Hi,
I am trying to get a very large BASE64 string converted back into Binary but seem to be having issues with the BASE64_DECODE procedure.

The string I am attempting to convert is greater than 65535 characters but when debugging it seems to hit invalid characters in the procedure after character 65535. I am holding my input string in a large CLOB field in my program and pass this as a pointer into the base64_decode procedure, but this then detects invalid characters after character 65535 - is this down to a size restriction of the 'data' data structure which is based on the Input pointer?

If so, is the solution to convert the string in 'chunks' of less than 65535 and merge the converted binary strings into a single string? The string relates to a label which will ultimately be saved as a pdf for printing.

Thanks in advance for any assistance!
Regards,
Al

Re: Restriction on Size in base64_decode procedure

Posted: Tue Feb 28, 2023 9:48 pm
by Scott Klement
I'm not aware of any such limitation. Can you provide a code example that illustrates the problem?