I have not tried to send files by MQTT, the usual thing is to send small information.
Do you need to use MQTT? Can you use FireBase or CloudDB? What is your "machine learning model"? What is your MQTT Broker?
https://community.appinventor.mit.edu/t/esp32-mqtt-broker-publish-subscribe-thingspeak/10490