XPRIM_HttpRequest - limitations of using AddFile on IBM i.

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
soa
Posts: 339
Joined: Mon Dec 07, 2015 3:15 pm

XPRIM_HttpRequest - limitations of using AddFile on IBM i.

Post by soa »

The documentation says that you cannot use AddFile or binary data on iseries. Sureely this only requires that the data be converted to base 64 before being added. This can be accomplished using Integrator or within rdmlx using the new file object (forget the name) introduced in a recent epc. Any reason why this wouldn't work?
tsupartono

Re: XPRIM_HttpRequest - limitations of using AddFile on IBM i.

Post by tsupartono »

You can convert the data manually to Base-64 string (e.g. using XPRIM_Binary) and use AddString (or include it as part of a JSON object), as long as your server code handles the decoding.
atostaine
Posts: 696
Joined: Wed Jan 20, 2016 7:38 am

Re: XPRIM_HttpRequest - limitations of using AddFile on IBM i.

Post by atostaine »

Art Tostaine
Post Reply