MQTT bin file streaming

I have a .bin file that I want to stream over MQTT.
Is it necessary to convert the binary file to Base64 before sending, or can I stream raw binary data directly over MQTT?

You can stream raw binary data directly over MQTT . MQTT treats the message payload as an opaque byte buffer (uint8_t* with a length), so it does not care what the contents are.

You might only need to encode in Base64 if the MQTT broker or subscriber expects text-only payloads.

Hi karahulx,

How can I implement MQTT file streaming using a custom job?
like I want to perform a custom OTA-like job over MQTT.

You can use MQTT File Streams as a reference.
This page also contains demos to help provide a starting point.
This AWS docs also will help you get started.