We have a requirement where integration is downloading the contents of a file from a URL as Binary response(application/octet-stream) in a REST Invoke through GET operation. After this step when we are trying to encode the FileContents to BASE64 in order to upload it to Draft PO as attachment(REST API for Oracle Procurement Cloud - Draft Purchase Orders REST Endpoints).
But Oracle has a Service limit of 10 MB to use in Encode function(encodeReferenceToBase64).
Can you suggest a different approach on how we can upload the PO attachments for files more than 10 MB(upto 2GB)? OR how to encode files>10MB to base64 in our integration?
Note: We can only get the file reference from the URL according to the requirement.
Sample Payload for Rest API:- {
"DatatypeCode": "FILE",
"FileName": "RESvasvtachment4.txt",
"Description": "description",
"FileContents": "PGh0bWw+PGhlYWQ+PGJhc2UgdGFyZ2V0PSJfc2VsZiI+PC9oZWFkPjxib2R5IG9uTG9hZD0iZG9jdW1lbnQubXlGb3JtLnN1Ym1pdCgpIj48bm9zY3JpcHQ+PHA+SmF2YVNjcmlwdCBpcyByZXF1aXJlZC4gUGxlYXNlIGVuYWJsZSBKYXZhU2NyaXB0LjwvcD48L25vc2NyaXB0PjwhLS0gICAgICAgICAgIERPIE5PVCBSRU1PVkUgICAgICAgICAgICAtLT48IS0tICAgIGxvZ2luZm9ybSByZW5kZXJCcm93c2VyVmlldyAgICAgLS0+PCEtLSBSZXF1aXJlZCBmb3IgU21hcnRWaWV3IEludGVncmF0aW9uIC0tPjxmb3JtIGFjdGlvbj0iL2ZzY21VSS9jb250ZW50L2Nvbm4vRnVzaW9uQXBwc0NvbnRlbnRSZXBvc2l0b3J5L3V1aWQvZERvY0lEOjEwMDM2NzgiIG1ldGhvZD0icG9zdCIgbmFtZT0ibXlGb3JtIiBlbmN0eXBlPSJhcHBsaWNhdGlvbi94LXd3dy1mb3JtLXVybGVuY29kZWQiID48L2Zvcm0+PC9ib2R5PjwvaHRtbD4K"
}