# Loading external data

**URL:** <https://forum.knime.com/t/loading-external-data/186>\
**Category:** Node Development\
**Created:** [November 13, 2007, 4:11pm UTC](https://forum.knime.com/t/loading-external-data/186 "2007-11-13T16:11:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rocksportrocker](https://forum-cdn.knime.com/user_avatar/forum.knime.com/rocksportrocker/32/36_2.png) [@rocksportrocker](https://forum.knime.com/u/rocksportrocker)\
**Post date:** [November 13, 2007, 4:11pm UTC](https://forum.knime.com/t/loading-external-data/186/1 "2007-11-13T16:11:04Z")

</div>

Hi,

I would like to load external data inside a NodeModel at runtime.   
I imported this file into eclipse and the file appears in the root directory   
of my current project.

How do I get the path to this file at runtime ????

Greetings, Uwe

---

<div class="post-metadata">

**Author:** ![unknown\_user](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/u/ac91a4/32.png) [@unknown\_user](https://forum.knime.com/u/unknown_user)\
**Post date:** [November 13, 2007, 5:53pm UTC](https://forum.knime.com/t/loading-external-data/186/2 "2007-11-13T17:53:53Z")

</div>

Hi Uwe,

not exactly sure what you try to accomplish. If it's "just" figuring out where the workspace location is, you may want to have a look at the class KNIMEPath and CorePlugin (both contained in the org.knime.core plugin).

You won't be able to use either of both (as we hide these classes to downstream plugins) but it may be worthwhile seeing how we solve the problem in there. The CorePlugin class (in general the NodePlugin class that comes with each of the plugins) allows one to access eclipse internals, for instance the workspace dir.

Hope it helps. If not or you are not able to locate the classes, please let us know.

Cheers  
 Bernd

---

<div class="post-metadata">

**Author:** ![unknown\_user](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/u/ac91a4/32.png) [@unknown\_user](https://forum.knime.com/u/unknown_user)\
**Post date:** [November 14, 2007, 9:40am UTC](https://forum.knime.com/t/loading-external-data/186/3 "2007-11-14T09:40:50Z")

</div>

Hi, I found it myself:

```
URL u = XXNodePlugin.getDefault().getBundle().getEntry("/");
File rf = new File(Platform.asLocalURL(u).getPath()+"/config/config.dat");
```

works for me.

Greetings, Uwe

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [June 23, 2023, 8:14pm UTC](https://forum.knime.com/t/loading-external-data/186/4 "2023-06-23T20:14:14Z")

</div>


