Check out this documentation: https://docs.mendix.com/howto/data-models/working-with-images-and-files