# Binary file location

**URL:** <https://forum.inductiveautomation.com/t/binary-file-location/102785>\
**Category:** Ignition\
**Tags:** ignition79\
**Created:** [February 24, 2025, 3:26pm UTC](https://forum.inductiveautomation.com/t/binary-file-location/102785 "2025-02-24T15:26:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![yahia\_alem](https://avatars.discourse-cdn.com/v4/letter/y/8e8cbc/32.png) [@yahia\_alem](https://forum.inductiveautomation.com/u/yahia_alem)\
**Post date:** [February 24, 2025, 3:26pm UTC](https://forum.inductiveautomation.com/t/binary-file-location/102785/1 "2025-02-24T15:26:33Z")

</div>

Hello every one,  
I'm about to make a small modification on a project.  
the thing is that we have a botton which is when pressed he opens a png file related to a note in every alarm ( like a help note ) now we added new equipments to the machine et I want to add more png file accorded to the new alarm.  
I did the configuration as it was in the old alarms but now I don't know how can I add my .png files to the project ?  
I search for the old png related to the old alarm and I don't find them in my project ( maybe im llokng into it in the wrong place ? )  
anyway : here is my script and it working for all the old ones ( openaidealarm )  
If someone can tell me how can I procede !  
Thanks

 ![Capture d'écran 2025-02-24 153911](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/e/5ed95deef1e8b64714e9c8f13d466b65cb1d2917.png)

---

<div class="post-metadata">

**Author:** ![ryan.white](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan.white/32/73193_2.png) [@ryan.white](https://forum.inductiveautomation.com/u/ryan.white)\
**Post date:** [February 24, 2025, 4:23pm UTC](https://forum.inductiveautomation.com/t/binary-file-location/102785/2 "2025-02-24T16:23:42Z")

</div>

Please post code, not pictures of code. It helps speed up responses as people can just copy/paste instead of trying to read a screenshot. Please see [Wiki - how to post code on this forum](https://forum.inductiveautomation.com/t/wiki-how-to-post-code-on-this-forum/77831).

The code you posted is only opening a popup window. You would need to open that window in the designer to see what is configured on it. The popup window appears to be generic as the code is passing the alarm number to the window when opening it.

Inspect that window in the designer to see if there are any scripts or additional bindings on the window that fetch the PNG that you see.

Also, check the image management tool in the designer to see if the pictures are stored there.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [February 24, 2025, 6:00pm UTC](https://forum.inductiveautomation.com/t/binary-file-location/102785/3 "2025-02-24T18:00:31Z")

</div>

From the cutoff section at the top of the screenshot, the script in question is walking the filesystem to retrieve _something_.

You will need to determine:

1. Where this script is getting called (gateway vs Vision client)
2. What `path` argument is being provided

In order to find where these images might be.

And then lament the person before you who went this route instead of using Ignition's built in image management tool.

---

<div class="post-metadata">

**Author:** ![yahia\_alem](https://avatars.discourse-cdn.com/v4/letter/y/8e8cbc/32.png) [@yahia\_alem](https://forum.inductiveautomation.com/u/yahia_alem)\
**Post date:** [February 25, 2025, 4:02pm UTC](https://forum.inductiveautomation.com/t/binary-file-location/102785/4 "2025-02-25T16:02:40Z")

</div>

I'm agree with you,  
I found the solution yesterday.  
The images are converted from png to binary and stocked on SQL server.  
It was hard to find 😛

---

<div class="post-metadata">

**Author:** ![yahia\_alem](https://avatars.discourse-cdn.com/v4/letter/y/8e8cbc/32.png) [@yahia\_alem](https://forum.inductiveautomation.com/u/yahia_alem)\
**Post date:** [February 25, 2025, 4:04pm UTC](https://forum.inductiveautomation.com/t/binary-file-location/102785/5 "2025-02-25T16:04:13Z")

</div>

> [@paul-griffith](#):
>
> Where this script is getting called (gateway vs Vision client)

but I have a question, how can I know if it is called from the gateway or vision client ?

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [February 25, 2025, 4:08pm UTC](https://forum.inductiveautomation.com/t/binary-file-location/102785/6 "2025-02-25T16:08:51Z")

</div>

You typed "Binnay" in your question title. Did you mean "binary"? If so, please edit [the pencil icon] and fix it. It may help someone else in future.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [February 25, 2025, 4:23pm UTC](https://forum.inductiveautomation.com/t/binary-file-location/102785/7 "2025-02-25T16:23:30Z")

</div>

> [@yahia\_alem](#):
>
> how can I know if it is called from the gateway or vision client ?

You just have to look at where the code is.

If it's in the section of the project titled 'Gateway Event Scripts'...it's being invoked from the gateway, relative to whatever type of event (on a timer, when a script message comes in, when a tag changes, etc). If it's somewhere inside your Vision project, in a window, template, or in the 'Client Event Scripts' section, then it's being invoked on the local machine.

Tag scripts (except for Vision's client tags) are also running on the gateway.

> **[Scripting in Ignition | Ignition User Manual](https://www.docs.inductiveautomation.com/docs/8.1/platform/scripting/scripting-in-ignition#script-scope)**
>
> Where Is Scripting Used?
