Metadata from Image

Hello All, I have the problem that I want to validate from an image the metadata e.g. number of pixels in height and width. Are these stored in the DB ? If not, how do I get there in a Microflow ? Greetings Chris
1 answers

You need a Java-Action to achieve this, e.g. using Java ImageIO to create a BufferedImage (details here: from which you can get width and height. Parameter of this Java Action would be your image, and output would be a non persistent entity that has an attribute for each image property that you want to validate.

Mendix does not store this information which you can check by reviewing the entities Image and FileDocument in module System.