Byte stream communication in APIGEE

I am new to APIGEE, i have a requirement where I am dealing with UI, apigee between and Forgerock for authentication and also micro services for backend communication.

I have a requirement where I need to call Forgerock with user credentials and Forgerock will decide if the user is registered with MFA device if not then Forgerock will reply with details after processing it APIGEE need to call backend service call with some details given by Forgerock and this backend call replies with BYTE STREAM (to generate QR Code to UI).

I have worked earlier APIGEE transfer data in SOAP, and JSON form wanted to check if possible to communicate/ data in byte str

Apigee acts as a proxy. If your upstream system (forgerock) sends back a response with a content-type of “application/octet-stream” (or similar) and binary data, Apigee will gladly forward that response to the caller. No problem. You can try this yourself now - just put an Apigee proxy in front of a image URL anywhere on the internet. It will just work.

If you want the Apigee proxy to examine, mediate, or manipulate that response payload, then you need to take special care. You cannot do it from within an AssignMessage or JavaScript policy. Maybe Python (not sure). For sure you could use a Java callout.

Hi @PrashantMatti ,

I’m so happy to welcome you to the Apigee Community! We’re glad to have you here, and thank you for your question.

If you find that @dchiesa1 ''s response addressed your query, marking it as the accepted solution would be a great help to others facing similar challenges. Thank you @dchiesa1 for your prompt response! :+1:t3:

Also, we’d love to invite you to our upcoming Apigee Community virtual event on November 14 - a great chance to learn about Spec-Driven Development (SDD) and Continuous Integration/Continuous Delivery (CI/CD) :right_arrow: Register here!