Hi Bart, sorry, honestly dont mean to rain on your parade but I just wanted to point out that if anyone has already installed node-red-contrib-image-tools and are using it for resizing / rotating an image etc before posting to Telegram or Notification etc, that it was already possible to generate a data URI of an image...
... the idea of including that feature in image-tools was exactly for this scenario where you would be working with images then would like to transmit it somewhere like Telegram or Email etc.
Obviously, this is limited to images unlike your node.