Ikael
November 25th, 2016, 12:00
Am I able to create databasenode with type="image" with bitmap value using FG API? The problem is that image typed databasenodes should look as following
<image type="image">
<bitmap>path/to/image_file</bitmap>
</image>
First of all you cannot create databasenode containing value and no type so <bitmap>path/to/image_file</bitmap> doesn't work, then I tested creating <bitmap type="string">path/to/image_file</bitmap> which works but when I save the db.xml file the image databasenode is stripped to have no value. The only spot where I am able to "write" image typed databasenodes is to do Module.export.
Does anyone know if this can be done with current FG engine/API?
<image type="image">
<bitmap>path/to/image_file</bitmap>
</image>
First of all you cannot create databasenode containing value and no type so <bitmap>path/to/image_file</bitmap> doesn't work, then I tested creating <bitmap type="string">path/to/image_file</bitmap> which works but when I save the db.xml file the image databasenode is stripped to have no value. The only spot where I am able to "write" image typed databasenodes is to do Module.export.
Does anyone know if this can be done with current FG engine/API?