# 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, scripting, vision\
**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:** 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:** [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).

---

_[View the full topic](https://forum.inductiveautomation.com/t/how-to-read-image-path-from-a-temp-directory-in-linux-os/64945)._
