# Loading an image that’s not in the resource directory or the docs directory

**URL:** <https://forums.solar2d.com/t/loading-an-image-that-s-not-in-the-resource-directory-or-the-docs-directory/356803>\
**Category:** Audio and Graphics\
**Created:** [September 5, 2024, 12:28am UTC](https://forums.solar2d.com/t/loading-an-image-that-s-not-in-the-resource-directory-or-the-docs-directory/356803 "2024-09-05T00:28:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![famousdoggstudios](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/f/94ad74/32.png) [@famousdoggstudios](https://forums.solar2d.com/u/famousdoggstudios)\
**Post date:** [September 5, 2024, 12:28am UTC](https://forums.solar2d.com/t/loading-an-image-that-s-not-in-the-resource-directory-or-the-docs-directory/356803/1 "2024-09-05T00:28:03Z")

</div>

I have the absolute file path for images i need to load on a windows app that I’m making using s2d

The newImage fn only appears to accept paths relative to the resource directory or documents directory. I’m pretty sure this cannot be a limitation and i am missing the trick.

Will appreciate any help. Bottomline is i cannot move those images into my docs directory and then load them. That would be ridiculous. I need to load them from where they are on the system with their actual file path

---

<div class="post-metadata">

**Author:** ![Siu](https://forums.solar2d.com/user_avatar/forums.solar2d.com/siu/32/2129_2.png) [@Siu](https://forums.solar2d.com/u/Siu)\
**Post date:** [September 5, 2024, 12:49am UTC](https://forums.solar2d.com/t/loading-an-image-that-s-not-in-the-resource-directory-or-the-docs-directory/356803/2 "2024-09-05T00:49:31Z")

</div>

That is indeed a “forced” limitation. You can use [symlinks](https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/mklink), or use [Bytemap plugin](https://ggcrunchy.github.io/corona-plugin-docs/DOCS/Bytemap/api.html#loadTexture) to load the textures using the `is_absolute` flag, and then use those textures to create display objects.

---

<div class="post-metadata">

**Author:** ![famousdoggstudios](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/f/94ad74/32.png) [@famousdoggstudios](https://forums.solar2d.com/u/famousdoggstudios)\
**Post date:** [September 5, 2024, 8:13am UTC](https://forums.solar2d.com/t/loading-an-image-that-s-not-in-the-resource-directory-or-the-docs-directory/356803/3 "2024-09-05T08:13:48Z")

</div>

oof. was really hoping that there’d be an easy way and that I had missed something but thanks anyway for pointing me to the bytemap plugin.

---

<div class="post-metadata">

**Author:** ![system](https://forums.solar2d.com/uploads/default/original/1X/1bf6a947166df24e92aaa3358558f4b82d7f3d5a.png) [@system](https://forums.solar2d.com/u/system)\
**Post date:** [March 4, 2025, 8:14am UTC](https://forums.solar2d.com/t/loading-an-image-that-s-not-in-the-resource-directory-or-the-docs-directory/356803/4 "2025-03-04T08:14:07Z")

</div>

Closed on March 4, 2025, 8:14am UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
