I'm trying to attach a picture from a local IP-Cam to a message. I use the HTTP Request node to GET the picture and return it as a binary buffer to msg.payload.
I then use a function node to build msg.attachments:
However, I only get "TypeError: msg.attachments.forEach is not a function".
Hi there!
I'm trying to attach a picture from a local IP-Cam to a message. I use the HTTP Request node to GET the picture and return it as a binary buffer to msg.payload. I then use a function node to build msg.attachments:
However, I only get "TypeError: msg.attachments.forEach is not a function".
Any idea what could cause this?
Thanks in advance!