# Image from local machine in Image component

**URL:** <https://forum.inductiveautomation.com/t/image-from-local-machine-in-image-component/85138>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [February 2, 2024, 6:01am UTC](https://forum.inductiveautomation.com/t/image-from-local-machine-in-image-component/85138 "2024-02-02T06:01:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adarsh\_K](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@Adarsh\_K](https://forum.inductiveautomation.com/u/Adarsh_K)\
**Post date:** [February 2, 2024, 6:01am UTC](https://forum.inductiveautomation.com/t/image-from-local-machine-in-image-component/85138/1 "2024-02-02T06:01:43Z")

</div>

Hi , My Project is to upload and save the user image byte in DB and show it in perspective image component . While i am printing or writing it to tag the bytes i am fetching , Base64 byte but when i am writing it to a label or a source of image component i am getting integers .  
I tried converting the image to base64 format also . Still not working and time to load is more .  
Is there any way to fetch the raster format images from local machine ?

---

<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:** [February 2, 2024, 2:53pm UTC](https://forum.inductiveautomation.com/t/image-from-local-machine-in-image-component/85138/2 "2024-02-02T14:53:28Z")

</div>

> [@Adarsh\_K](#):
>
> Is there any way to fetch the raster format images from local machine ?

No. That is the kind of thing malware tries to do in browsers. Browsers go to great lengths to block that. If you succeed, and anyone finds out, you can expect that security hole to be closed quickly.

---

<div class="post-metadata">

**Author:** ![Adarsh\_K](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@Adarsh\_K](https://forum.inductiveautomation.com/u/Adarsh_K)\
**Post date:** [February 2, 2024, 3:07pm UTC](https://forum.inductiveautomation.com/t/image-from-local-machine-in-image-component/85138/3 "2024-02-02T15:07:00Z")

</div>

So is there any way to achive this ? And any idea on bytes thing I asked above ?

---

<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:** [February 2, 2024, 3:28pm UTC](https://forum.inductiveautomation.com/t/image-from-local-machine-in-image-component/85138/4 "2024-02-02T15:28:32Z")

</div>

I recommend my (free) Blob Server module if you've put the images into your DB as blobs (not base64).

> [@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…
