# Include data within a component

**URL:** <https://forum.knime.com/t/include-data-within-a-component/25745>\
**Category:** KNIME Analytics Platform\
**Created:** [August 6, 2020, 12:43pm UTC](https://forum.knime.com/t/include-data-within-a-component/25745 "2020-08-06T12:43:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mattflor](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mattflor/32/251_2.png) [@mattflor](https://forum.knime.com/u/mattflor)\
**Post date:** [August 6, 2020, 12:43pm UTC](https://forum.knime.com/t/include-data-within-a-component/25745/1 "2020-08-06T12:43:27Z")

</div>

I have created a component containing a Generic Javascript View that generates a choropleth map based on specific German subdivision (“Kreise”). I want to include the geojson file that defines the subdivisions’ polygons and is read by a JSON Reader node in the component. How can I do that?

---

<div class="post-metadata">

**Author:** ![ipazin](https://forum-cdn.knime.com/user_avatar/forum.knime.com/ipazin/32/806_2.png) [@ipazin](https://forum.knime.com/u/ipazin)\
**Post date:** [August 6, 2020, 1:04pm UTC](https://forum.knime.com/t/include-data-within-a-component/25745/2 "2020-08-06T13:04:03Z")

</div>

Hi @mattflor,

see here how to do it: [Shared component with external file](https://forum.knime.com/t/shared-component-with-external-file/23866/7)

Guess you planned to share/re-use Component?

Br,  
Ivan

---

<div class="post-metadata">

**Author:** ![mattflor](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mattflor/32/251_2.png) [@mattflor](https://forum.knime.com/u/mattflor)\
**Post date:** [August 6, 2020, 1:36pm UTC](https://forum.knime.com/t/include-data-within-a-component/25745/3 "2020-08-06T13:36:42Z")

</div>

Hi @ipazin,

exactly, this would be for sharing purposes. I had actually used a `knime://knime.node/../.data` URL in the JSON Reader node already (and put the geojson file there), but on copying or sharing/re-using the component that data folder does not seem to be copied. There is a ticket being mentioned for that in [Shared component with external file](https://forum.knime.com/t/shared-component-with-external-file/23866/7) if I am not mistaken. Or am I still doing something wrong?

Thank, Matt

---

<div class="post-metadata">

**Author:** ![ipazin](https://forum-cdn.knime.com/user_avatar/forum.knime.com/ipazin/32/806_2.png) [@ipazin](https://forum.knime.com/u/ipazin)\
**Post date:** [August 7, 2020, 8:21am UTC](https://forum.knime.com/t/include-data-within-a-component/25745/4 "2020-08-07T08:21:21Z")

</div>

Hello @mattflor,

you are not mistaken as all data is removed from the component folder when you share it. There is ticket and I have given it +1 for you. (Internal reference: AP-6125)

Br,  
Ivan

---

<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:** [February 5, 2021, 8:22pm UTC](https://forum.knime.com/t/include-data-within-a-component/25745/5 "2021-02-05T20:22:19Z")

</div>

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