# Show a media field in HTML

**URL:** <https://forum.servoy.com/t/show-a-media-field-in-html/12747>\
**Category:** Classic Servoy\
**Created:** [August 27, 2010, 9:01am UTC](https://forum.servoy.com/t/show-a-media-field-in-html/12747 "2010-08-27T09:01:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasantana](https://avatars.discourse-cdn.com/v4/letter/j/e79b87/32.png) [@jasantana](https://forum.servoy.com/u/jasantana)\
**Post date:** [August 27, 2010, 9:01am UTC](https://forum.servoy.com/t/show-a-media-field-in-html/12747/1 "2010-08-27T09:01:05Z")

</div>

Good morning.

Can be used data tags to display a value returned by a function. I wanted to display something like %%globals.createMemberInfo(member\_id)%% in a ToolTipText, but the method is never run.

Why do I need a method? Because the function creates HTML that shows some text data plus a MEDIA field. To show that MEDIA field I create a temp file using this code:

```auto
	var _image = plugins.images.getImage(media);
	var _tempFile = plugins.file.createTempFile('tmpMemberImg','.jpg')
	plugins.file.writeFile(_tempFile, _image.getData())
	application.output(_tempFile)

```

Maybe there is another way to do this.  
Thanks in advance.

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [August 27, 2010, 9:13am UTC](https://forum.servoy.com/t/show-a-media-field-in-html/12747/2 "2010-08-27T09:13:32Z")

</div>

Hi Juan,

You might want to take a look at the servoy blobloader. This can be used to show image media from a database in HTML.  
[http://wiki.servoy.com/display/public/D … blobloader](http://wiki.servoy.com/display/public/DOCS/servoy_blobloader)

Hope this helps.

---

<div class="post-metadata">

**Author:** ![jasantana](https://avatars.discourse-cdn.com/v4/letter/j/e79b87/32.png) [@jasantana](https://forum.servoy.com/u/jasantana)\
**Post date:** [August 27, 2010, 9:46am UTC](https://forum.servoy.com/t/show-a-media-field-in-html/12747/3 "2010-08-27T09:46:22Z")

</div>

> ROCLASI:  
> You might want to take a look at the servoy blobloader. This can be used to show image media from a database in HTML.  
> [http://wiki.servoy.com/display/public/D … blobloader](http://wiki.servoy.com/display/public/DOCS/servoy_blobloader)

Thanks my friend. That did the tricky I placed the code in a calculation and works perfectly with the example in that link
