# Need help displaying a jpg in Dashboard 2. Assume noob level

**URL:** <https://discourse.nodered.org/t/need-help-displaying-a-jpg-in-dashboard-2-assume-noob-level/90121>\
**Category:** Dashboard\
**Tags:** dashboard-2, ui-template\
**Created:** [12 August 2024 10:19 UTC](https://discourse.nodered.org/t/need-help-displaying-a-jpg-in-dashboard-2-assume-noob-level/90121 "2024-08-12T10:19:21Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [12 August 2024 10:46 UTC](https://discourse.nodered.org/t/need-help-displaying-a-jpg-in-dashboard-2-assume-noob-level/90121/2 "2024-08-12T10:46:31Z")

</div>

If you search with the tag #dashboard-2 it will narrow your search and you might stumble on one of these:

- [Image display with template - #2 by Steve-Mcl](https://discourse.nodered.org/t/image-display-with-template/89958/2)
- [Pushing a base64 encoded image to dashboard D2 - #5 by Steve-Mcl](https://discourse.nodered.org/t/pushing-a-base64-encoded-image-to-dashboard-d2/87052/5)

show us what you get from the camera.

If it is a buffer object, you probably want to convert it to base64 before using either of the 2 linked solutions (there is a contrib node or you can use a function node)

```auto
msg.payload = msg.payload.toString('base64');
return msg

```

---

_[View the full topic](https://discourse.nodered.org/t/need-help-displaying-a-jpg-in-dashboard-2-assume-noob-level/90121)._
