You want to get a binary HTTP response from an HTTP request.
The HTTP Request
node will return the body of a response in the msg.payload
as a string by default.
Change the Return
configuration of this node to a binary buffer
to return the response as a binary buffer in the msg.payload
.
We have modified the flow from the Set the URL of a Request URL recipe by changing the
HTTP Request
node Return
configuration to a binary buffer
. The Debug
node
will display the payload as a binary buffer such as:
[ 80, 75, 3, 4, 20, 0, 6, 0, 8, 0 … ]
Node-RED: Low-code programming for event-driven applications.
Copyright OpenJS Foundation and Node-RED contributors. All rights reserved. The OpenJS Foundation has registered trademarks and uses trademarks. For a list of trademarks of the OpenJS Foundation, please see our Trademark Policy and Trademark List. Trademarks and logos not indicated on the list of OpenJS Foundation trademarks are trademarks™ or registered® trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them.
The OpenJS Foundation | Terms of Use | Privacy Policy | OpenJS Foundation Bylaws | Trademark Policy | Trademark List | Cookie Policy