Search found 2 matches
- Wed Apr 19, 2023 8:02 pm
- Forum: HTTPAPI
- Topic: Rest Service Post Json containing Base64 encoded data
- Replies: 3
- Views: 9560
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.
- Wed Apr 19, 2023 7:24 pm
- Forum: HTTPAPI
- Topic: Rest Service Post Json containing Base64 encoded data
- Replies: 3
- Views: 9560
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 ...
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 ...