M.App Enterprise Discussions

Discuss topics with other M.App Enterprise Product pioneers and experts to get the most out of it.
Showing results for 
Search instead for 
Do you mean 
Posts: 51
Registered: ‎09-23-2019
Accepted Solution

DESKTOP - How to add image to tooltip from db

[ Edited ]

I'm using an Oracle DB table containing a BLOB field. The underlying data in this field are pictures. I want to embed these images in a tooltip.


Is there a way to do this? If so, how?


--- What I've tried so far ---

1.Following this post, I've tried to convert an image to base64 format and embed it in a vector layer tooltip. I tried doing via DB and got denied by the DB because of length violation:

tooltip field too short.png

2. Also tried simple approach of inserting the following HTML phrase into the DB. Didn't worked/



Technical Evangelist
Posts: 1,351
Registered: ‎09-11-2015

Re: DESKTOP - How to add image to tooltip from db

Not fully sure about this, but it looks to me like the Desktop App's tooltip renderer doesn't support base64 encoding. I've tried with following tooltip using 'red dot' image and it showed only broken image icon:

set TOOLTIP = '<p><img src="data&colon;image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==" alt="image" />'

This appears to me as the product limitation, or a non-tested option.

Jan Neumann
Post Sales Engineer Web Applications
Hexagon Geospatial