Show a media field in HTML

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:

	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.

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

Hope this helps.

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

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