# Upload file to an image component in perspective

**URL:** <https://forum.inductiveautomation.com/t/upload-file-to-an-image-component-in-perspective/93320>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [July 17, 2024, 9:01am UTC](https://forum.inductiveautomation.com/t/upload-file-to-an-image-component-in-perspective/93320 "2024-07-17T09:01:12Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [July 17, 2024, 12:09pm UTC](https://forum.inductiveautomation.com/t/upload-file-to-an-image-component-in-perspective/93320/2 "2024-07-17T12:09:29Z")

</div>

Yes. The image component needs a URL pointing at the image file, so you have to either transform the image file bytes into a Data URL (base64 encoding, basically), or store the image file content in a place Ignition can reach to feed it back to the image component in your browser.

For the latter approach, the WebDev module is the canonical solution. If you want to avoid spending those $$, and you can use a database to hold images as blobs, you might find my Blob Server module helpful.

> [@Automation Professionals' Blob Server Module](https://forum.inductiveautomation.com/t/automation-professionals-blob-server-module/57970):
>
> Automation Professionals is pleased to announce an alpha release of its new Blob Server Module. Available only for Ignition v8.1, here. The Blob Server Module provides a simple way to deliver images, PDF files, or other binary content from a database to your Perspective clients or other web applications. Without needing the WebDev module. All you need is a Named Query that has appropriate security settings and returns a single row with two columns: Content, and ContentType. Modest documentati…

---

_[View the full topic](https://forum.inductiveautomation.com/t/upload-file-to-an-image-component-in-perspective/93320)._
