# Image URL

**URL:** <https://forum.inductiveautomation.com/t/image-url/2029>\
**Category:** Ignition\
**Created:** [July 13, 2010, 1:08pm UTC](https://forum.inductiveautomation.com/t/image-url/2029 "2010-07-13T13:08:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Step7](https://avatars.discourse-cdn.com/v4/letter/s/45deac/32.png) [@Step7](https://forum.inductiveautomation.com/u/Step7)\
**Post date:** [July 13, 2010, 1:08pm UTC](https://forum.inductiveautomation.com/t/image-url/2029/1 "2010-07-13T13:08:56Z")

</div>

Ok, her’s an easy one. What is the url to the built-in image folders? I used to use it in FPMI, but it is different in Ignition. I looked all over but couldn’t find a ref to it.

---

<div class="post-metadata">

**Author:** ![nmudge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nmudge/32/3394_2.png) [@nmudge](https://forum.inductiveautomation.com/u/nmudge)\
**Post date:** [July 13, 2010, 3:14pm UTC](https://forum.inductiveautomation.com/t/image-url/2029/2 "2010-07-13T15:14:06Z")

</div>

[localhost:8088/main/system/images/](http://localhost:8088/main/system/images/)

For instance:  
[localhost:8088/main/system/image … 2/add2.png](http://localhost:8088/main/system/images/Builtin/icons/32/add2.png)

---

<div class="post-metadata">

**Author:** ![Step7](https://avatars.discourse-cdn.com/v4/letter/s/45deac/32.png) [@Step7](https://forum.inductiveautomation.com/u/Step7)\
**Post date:** [July 13, 2010, 6:10pm UTC](https://forum.inductiveautomation.com/t/image-url/2029/3 "2010-07-13T18:10:36Z")

</div>

Thanks.

But I'm having a hard time accessing the images. I need to get them from the gateway, so I wanted to concatenate the gateway address with the image path. I know I had this working in FPMI, but it's on another PC and I don't have access to the project right now. Even if I just hard code the url, it doesn't work (in the code below, the gateway is on the local machine):

```auto
address = system.util.getGatewayAddress()
print address
I = javax.imageio.ImageIO.read(open("http://localhost:8088/main/system/images/Builtin/icons/32/add2.png"))
```

Here is the error text:

> [@](#):
>
> [127.0.0.1:8088/main](http://127.0.0.1:8088/main)  
> ERROR [ActionAdapter-AWT-EventQueue-0] Error executing script for event:&nbsp;`repaint`  
> on component:&nbsp;`Paintable Canvas`.  
> Traceback (innermost last):  
> File "event:repaint", line 30, in ?  
> IOError: File not found - http:\localhost:8088\main\system\images\Builtin\icons\32\add2.png (The filename, directory name, or volume label syntax is incorrect)

I've tried typing in 127.0.0.1 instead of localhost, and get the same results. But it works fine if I just point to a local file on the PC, such as "D:\Images\Add2.png", so there is something going on with the path to the gateway. Ideas?

---

<div class="post-metadata">

**Author:** ![AlThePal](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/althepal/32/3603_2.png) [@AlThePal](https://forum.inductiveautomation.com/u/AlThePal)\
**Post date:** [July 13, 2010, 9:50pm UTC](https://forum.inductiveautomation.com/t/image-url/2029/4 "2010-07-13T21:50:55Z")

</div>

javax.imageio.ImageIO.read is expecting a URL - try the following:`import java
address = system.util.getGatewayAddress()
print address
url = java.net.URL("http://localhost:8088/main/system/images/Builtin/icons/32/add2.png")
I = javax.imageio.ImageIO.read(url)`

---

<div class="post-metadata">

**Author:** ![Step7](https://avatars.discourse-cdn.com/v4/letter/s/45deac/32.png) [@Step7](https://forum.inductiveautomation.com/u/Step7)\
**Post date:** [July 14, 2010, 1:10pm UTC](https://forum.inductiveautomation.com/t/image-url/2029/5 "2010-07-14T13:10:18Z")

</div>

Thanks Al, that was it. What threw me was that something like this works

[quote]  
C = javax.imageio.ImageIO.read(open(“D:\Images\add2.png”))[/quote]

and it didn’t occur to me that it needed to be a url to reach another PC (or even the local PC if it was part of the path).
