Question

Rest sender multipart/form data

  • 14 October 2021
  • 4 replies
  • 36 views

Userlevel 1
Badge +6

Calling all IFS REST gurus…

Has anyone successfully sent multipart/form-data requests to REST endpoints using IFS standard functionality or do you need to go down the UTL_HTTP route to do this?  I seem to get parsing errors whenever i try to send the message using plsql_rest_sender_api.call_rest_endpoint2.


4 replies

Userlevel 2
Badge +3

Hi @chriselliston,

 

I have done same program using UTL_HTTP. I believe that UTL_HTTP package is the most suitable one for this operation.

 

Best Regards

Shehan

Userlevel 1
Badge +6

Hi Shehan

Have you been able to pass a blob as an attachment in the multipart form-data request?

Regards

Chris

Userlevel 2
Badge +3

Hi @chriselliston,

 

I have sent a json as a blob. However if you need to send a attachment I believe that you should chunk it before send to the endpoint.

 

Best Regards

Sheha

Userlevel 1
Badge +6

Hi Shehan

Have you got any examples?

I’ve got a simple text file working.

The blob is proving problematic though.  I’m converting to a base64 encoded clob and the file gets sent but is corrupt at the other end.

Regards

Chris

Reply