# Convert Hex to Image in Ignition Perspective

**URL:** <https://forum.inductiveautomation.com/t/convert-hex-to-image-in-ignition-perspective/85607>\
**Category:** Ignition\
**Tags:** perspective, ignition81\
**Created:** [February 13, 2024, 4:09am UTC](https://forum.inductiveautomation.com/t/convert-hex-to-image-in-ignition-perspective/85607 "2024-02-13T04:09:09Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Cose\_Peter1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cose_peter1/32/79174_2.png) [@Cose\_Peter1](https://forum.inductiveautomation.com/u/Cose_Peter1)\
**Post date:** [November 20, 2025, 11:14am UTC](https://forum.inductiveautomation.com/t/convert-hex-to-image-in-ignition-perspective/85607/4 "2025-11-20T11:14:02Z")

</div>

Did you try this?

> [@View Images from Database](https://forum.inductiveautomation.com/t/view-images-from-database/22626/5):
>
> You can create a named query that brings back the image bytes. If you are using MySQL, convert it to base64 in the query with TO\_BASE64(ImageData). Bind the source property of the perspective image component to the named query. Do the following script transform: b64Image = "data:imagef;base64,%s"%value return b64Image

---

_[View the full topic](https://forum.inductiveautomation.com/t/convert-hex-to-image-in-ignition-perspective/85607)._
