Send txt file to Esp32?

Thank you for your answers. Yes it seems feasible, I already got a RPI with nodered running, I'll just I have to pratice a few examples until I manage how to send a .txt 5KB data trough MQTT payload.
Regarding the server access, I'll probably set a public IP on No-IP platform for the RPI (Node red server) and that way the ESP32 can access it from anywhere.

Again, thank you!
Cheers, Luís Pereira.