Search found 2 matches

by bob.elko@hajoca.com
Wed Apr 19, 2023 8:02 pm
Forum: HTTPAPI
Topic: Rest Service Post Json containing Base64 encoded data
Replies: 3
Views: 9572

Re: Rest Service Post Json containing Base64 encoded data

I figured it out. I opened the file with the O_Textdata flag so I encoded the ebcdic data. I removed it and it's fine now.
by bob.elko@hajoca.com
Wed Apr 19, 2023 7:24 pm
Forum: HTTPAPI
Topic: Rest Service Post Json containing Base64 encoded data
Replies: 3
Views: 9572

Rest Service Post Json containing Base64 encoded data

I'm using HTTPAPI to post to a rest service that requires one element to be base64 encoded and I'm running into a tranlation problem.

My json needs to be
{
"file":"base64encodedfilecontents",
"replace":"true",
"domain":"Default"
}

in my rpg program I'm reading a text file into a string then ...