× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Thanks, Jon. You're right.. It was right there. :)

On Sat, Dec 10, 2022 at 3:13 AM Jon Paris <jon.paris@xxxxxxxxxxxxxx> wrote:

Just re-read the question Brad and the answer is in your own question I
think. Hex 40 is not a valid Base64 encoded character. So I suspect that
the user has screwed up the input data.


Jon P.


On Dec 9, 2022, at 11:20 PM, Brad Stone <bvstone@xxxxxxxxx> wrote:

That's what I thought too, but I don't see anything defined that big.
The
base64_decode function uses pointers.

On Fri, Dec 9, 2022 at 5:14 PM Don Brown via RPG400-L <
rpg400-l@xxxxxxxxxxxxxxxxxx> wrote:


I’m not near my laptop but 65536 sounds tooo much like exceeding a 65535
defined variable to me.

Sent from my iPhone

On 10 Dec 2022, at 09:29, Brad Stone <bvstone@xxxxxxxxx> wrote:

I have a customer using Scotts Base64 decoding stuff and I told him
I'd
ask
his question for him.

He's getting the following error decoding data that is pretty big:

CPF9897 Escape 40 12/09/22 16:07:30.792369 BASE64R4 MGFOBJ *STMT TM008
MPLIB *STMT
From module . . . . . . . . : BASE64R4
From procedure . . . . . . : INVALIDCHAR
Statement . . . . . . . . . : 471
To module . . . . . . . . . : TM008
To procedure . . . . . . . : _QRNP_PEP_TM008
Statement . . . . . . . . . : *N
Message . . . . : Unable to decode character at position 65536.
(Char=x'40')
Cause . . . . . : No additional online help information is available.

I thought at first it was because the field was over 65535. But then I
saw
the character in question is a space (x'40)?

The field is defined as 500000 char ccsid(1208).

Is there a limit on this base64_decode function? It uses pointers and
I
can't find anything else in there that is defined as 65335 bytes.

Bradley V. Stone
www.bvstools.com
Native IBM i e-Mail solutions for Microsoft Office 365, Gmail, or any
Cloud
Provider!
--

--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription
related questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com

--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.