# Show image from mqtt subscription

**URL:** <https://discourse.nodered.org/t/show-image-from-mqtt-subscription/81459>\
**Category:** Dashboard\
**Tags:** node-red-dashboard\
**Created:** [20 September 2023 16:54 UTC](https://discourse.nodered.org/t/show-image-from-mqtt-subscription/81459 "2023-09-20T16:54:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![scoobie71](https://avatars.discourse-cdn.com/v4/letter/s/b5ac83/32.png) [@scoobie71](https://discourse.nodered.org/u/scoobie71)\
**Post date:** [20 September 2023 16:54 UTC](https://discourse.nodered.org/t/show-image-from-mqtt-subscription/81459/1 "2023-09-20T16:54:29Z")

</div>

I have a python application that is taking Infrared picture and publishes it on a mqtt topic "IR/image" on base64.  
On node-red i want to subscrive to the tipic "IR/Image and show the image on the node-red dashboard. Is it possible to do it?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [20 September 2023 17:24 UTC](https://discourse.nodered.org/t/show-image-from-mqtt-subscription/81459/2 "2023-09-20T17:24:05Z")

</div>

> [@scoobie71](#):
>
> On node-red i want to subscrive to the tipic "IR/Image and show the image on the node-red dashboard. Is it possible to do it?

Yes, it is possible.

hook the node up to a ui-template node and set the src as the string

PS: this is covered many times on the forum e.g: [How to MQTT image from Raspi using Base64 and Template node - #4 by Steve-Mcl](https://discourse.nodered.org/t/how-to-mqtt-image-from-raspi-using-base64-and-template-node/42142/4), [Displaying an image in dashboard from a Url - #5 by Steve-Mcl](https://discourse.nodered.org/t/displaying-an-image-in-dashboard-from-a-url/27912/5)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [20 October 2023 17:24 UTC](https://discourse.nodered.org/t/show-image-from-mqtt-subscription/81459/3 "2023-10-20T17:24:09Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
