Restriction on Size in base64_decode procedure

Other open source tools published on ScottKlement.com
Post Reply
AlB247
Posts: 1
Joined: Tue Feb 28, 2023 10:35 am

Restriction on Size in base64_decode procedure

Post 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
Scott Klement
Site Admin
Posts: 635
Joined: Sun Jul 04, 2021 5:12 am

Re: Restriction on Size in base64_decode procedure

Post by Scott Klement »

I'm not aware of any such limitation. Can you provide a code example that illustrates the problem?
Post Reply