How to consume Rest API with binary data input?

Hi all,

I have a expose API like that picture below, Input Candidate data type is structure; CandidateCV and CandidatePhoto attribute is binary data type, rest of attribute is text and integer data type.

When I consume this API from another module like this picture below, It pop up error. You can see detail below.

Basically, I have just want to get binary data from consumer and insert it to entity.

I think error may related to binary data input but don't know how to fix it.

Thank you,

Huy,

Hi Huy


Could you share how you're calling the API? How are you assigning the binaries and the rest of the values?


Cheers,

   CLSJ

Carlos López Santibáñez Jácome wrote:

Hi Huy


Could you share how you're calling the API? How are you assigning the binaries and the rest of the values?


Cheers,

   CLSJ

Hi Carlos López Santibáñez Jácome,

I put Calling Rest API function in InsertNewCandidate server action. Firstly I will retrieve a record in entity, then pass attribute data of that record to input of Calling Rest API function.

There are four inputs, two of them that include CandidateCV and CandidatePhoto is binary data.

When I debug, It seems like error happen before flow reach expose API


Solution

Hi all,

I have already fixed issue


Solution

Hi Huy


Good Job! Just for further reference, how did you fix the problem?