I'm trying to fetch a camera shot via the Fully Kiosk Browser REST API and send it via email. I can get it to send the email, but the attachment doesn't come through as a valid image. If I call the endpoint directly from my browser it pulls up an image, and if I send it to a debug node I see the binary buffer.
I found this change node elsewhere in the forums, but it's not working for me. Anyone have any ideas?
[{"id":"84b6a7e.5bf7958","type":"change","z":"534682e6.98503c","name":"Setup mail content","rules":[{"t":"set","p":"cid","pt":"msg","to":"","tot":"date"},{"t":"set","p":"attachments","pt":"msg","to":"[{\t \"filename\": 'cam_' & $replace($now(),\":\",\"_\") & '.jpg', \t \"content\": $$.payload,\t \"cid\": \"\" & cid & \"\"\t}]","tot":"jsonata"},{"t":"set","p":"topic","pt":"msg","to":"Dashboard Camera","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"'<img src=\"cid:' & cid & '\"/>'","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":570,"y":760,"wires":[["e6f619ff.be4a58","bc454c64.2a513"]]}]