I have to call face recognition from microsoft API and the content-type must be application/octet-stream (must be binary data)
I tried to sent request by curl command outside APIGEE with using picture and this way was successful.
I tried to sent request by node.js outside APIGEE with base64 and this way was successful.
I tried to assign payload in assign message from binary request but I got error from microsoft (Decoding error, image format unsupported.).
*all of data I sent is from the same picture
My questions is:
- Can Assign Message sent application/octet-stream?
1.1 If cannot, how can i send the request with http proxy by using node.js
-
I want to know where can I see curl command. If I send request with application/octet-stream, I cannot see curl command in trace session.
-
Can I get variable from node.js to do another thing? Like context.getVariable(“”) in javascript