I am using 2 different MQTT Brokers(Mosquitto and EMQX). I am able to send messages between my mosquitto to EMQX and also EMQX to mosquitto using command prompt. I want to know if its possible to send files (png, pdf, xlsx, doc) between the two.
If yes, How?
A file would just be another message (MQTT messages are just byte arrarys, they can hold ANYTHING)
If you want to have messages be published to subscribing clients on both brokers then you need to set up a bridge between the 2 brokers.
How you setup a bridge with Mosquitto is documented in the mosquitto.conf man page here.
The same details for EMQ X can be found here