# How to read image path from a temp directory in Linux OS

**URL:** <https://forum.inductiveautomation.com/t/how-to-read-image-path-from-a-temp-directory-in-linux-os/64945>\
**Category:** Ignition\
**Tags:** ignition81, vision, scripting\
**Created:** [October 7, 2022, 1:35pm UTC](https://forum.inductiveautomation.com/t/how-to-read-image-path-from-a-temp-directory-in-linux-os/64945 "2022-10-07T13:35:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vengatesan\_S](https://avatars.discourse-cdn.com/v4/letter/v/839c29/32.png) [@Vengatesan\_S](https://forum.inductiveautomation.com/u/Vengatesan_S)\
**Post date:** [October 7, 2022, 1:35pm UTC](https://forum.inductiveautomation.com/t/how-to-read-image-path-from-a-temp-directory-in-linux-os/64945/1 "2022-10-07T13:35:29Z")

</div>

Hello,

I am writing some image files to the temp folder in the Linux OS directory.

Example the image path will be like this / **tmp/ign1326196659787219136.jpg**

I need to read this path and show this image in a image or label component. But I am not sure about using this path in Vision client, because client will point the current directory to local OS path ( windows ).

I believe that we can call the Linux server OS path from Gateway scope but in my case I need to call this path in a GUI component in Vision ( Example Button component )

is there any way to fulfill my requirement.

Thanks for the support in advance

---

<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:** [October 7, 2022, 1:46pm UTC](https://forum.inductiveautomation.com/t/how-to-read-image-path-from-a-temp-directory-in-linux-os/64945/2 "2022-10-07T13:46:19Z")

</div>

> [@Vengatesan\_S](#):
>
> my case I need to call this path in a GUI component in Vision

You cannot.

The closest you can get is to implement a gateway message handler that will read the requested file and return the bytes to the Vision Client. The image content can then be displayed in a Paintable Canvas. See this topic for implementation ideas:

> [@Generate image using graphics object, show that in a paintable canvas or image component](https://forum.inductiveautomation.com/t/generate-image-using-graphics-object-show-that-in-a-paintable-canvas-or-image-component/18141):
>
> Had a hard time with a title for this one. Basically, I have a map of a section of our facility that I auto-generate using the paintable canvas (luckily, the structure allows for this). However this really only needs to be calculated once when the window opens, or when its resized. Right now, it just recalculates the same thing over and over when it doesn’t need to, and I think its slowing the client down. Does anyone know if theres a way to generate an image with a graphics object and store it,…

Also, consider storing your images in a blob column of a database. Vision can query those directly for similar use on a Paintable Canvas, but it will make it easy to display the images in Perspective (via my free Blob Server module).
