The images/files are stored on the fileserver, which is by default at the application server. Though can also be an external fileserver.
In Mendix you model logic to consume these files/images using the related entities FileDocument & Image. When you retrieve a list of images in a microflow and send them to another app, then the file is part of the retrieved content.
They are not stored as binary in the content attribute of the FileDocument entity.