# Images in modules

**URL:** <https://forum.servoy.com/t/images-in-modules/3927>\
**Category:** Classic Servoy\
**Created:** [March 23, 2005, 9:44am UTC](https://forum.servoy.com/t/images-in-modules/3927 "2005-03-23T09:44:28Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![patrick](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@patrick](https://forum.servoy.com/u/patrick)\
**Post date:** [March 23, 2005, 9:44am UTC](https://forum.servoy.com/t/images-in-modules/3927/1 "2005-03-23T09:44:28Z")

</div>

Hello,

I have some anomalities when using images in modules. I do for example the following:

- I have a module (Toolkit) that I use to copy templates, methods and so forth from
- When I duplicate a form in another module from that module I can see all the images (that actually belong to the module) just fine
- When I load that new module into my main solution, the images are broken although the Toolkit is also loaded into the solution

I am not sure I made myself understandable. It looks like you can use the images from a module in a solution but once you use that solution as a module itself, the images are broken.

Thanks  
Patrick

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [March 28, 2005, 2:13pm UTC](https://forum.servoy.com/t/images-in-modules/3927/2 "2005-03-28T14:13:14Z")

</div>

so you are saying:

module 1 (which have the image)  
modele 2 (which uses the image)

then solution 1 which imports both then module 2 doesn’t show the image?

---

<div class="post-metadata">

**Author:** ![patrick](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@patrick](https://forum.servoy.com/u/patrick)\
**Post date:** [March 28, 2005, 2:20pm UTC](https://forum.servoy.com/t/images-in-modules/3927/3 "2005-03-28T14:20:41Z")

</div>

I think that’s what I mean ![:)]( "Smile")

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [April 11, 2005, 9:52am UTC](https://forum.servoy.com/t/images-in-modules/3927/4 "2005-04-11T09:52:07Z")

</div>

i can’t recreate this.

i make a moduleA where i import a media and show it on a form  
then i make a moduleB, that imports moduleA, where i import a media (i don’t see the pictures of modulaA anyway so you can’t use them.

Then i make a solution that imports moduleB  
Everything looks fine. ModuleA and ModuleB both are displaying there medias.

johan

---

<div class="post-metadata">

**Author:** ![patrick](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@patrick](https://forum.servoy.com/u/patrick)\
**Post date:** [April 11, 2005, 10:00am UTC](https://forum.servoy.com/t/images-in-modules/3927/5 "2005-04-11T10:00:25Z")

</div>

> i don’t see the pictures of modulaA anyway so you can’t use them.

That’s the point: if you have Module A loaded into Module B you can **duplicate a form** (with media) from Module A to use it in Module B. As long as you work in Module B you see the images (that actually don’t exist in Module A, but have been duplicated), but in the solution, where both modules are used, they are gone.

So in short: If you don’t import an image into a module but have it through duplication of a form of a module in a form, you have that problem. Strangely enough, it works inside the modules, although the media is actually not available in Module B.

Patrick

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [April 11, 2005, 11:18am UTC](https://forum.servoy.com/t/images-in-modules/3927/6 "2005-04-11T11:18:28Z")

</div>

Yes i looked at it some more and now media’s from modules are shown in the solutions (or modules).

I didn’t have any problem displaying them only that the media wasn’t in the media dialog.

---

<div class="post-metadata">

**Author:** ![patrick](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@patrick](https://forum.servoy.com/u/patrick)\
**Post date:** [April 11, 2005, 11:25am UTC](https://forum.servoy.com/t/images-in-modules/3927/7 "2005-04-11T11:25:21Z")

</div>

> Yes i looked at it some more and now media’s from modules are shown in the solutions (or modules).

Does that mean that you can import a media in one module and use it in any other module or the solution if that module is loaded?

Thanks  
Patrick

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [April 11, 2005, 11:39am UTC](https://forum.servoy.com/t/images-in-modules/3927/8 "2005-04-11T11:39:25Z")

</div>

yes
