0

How to send an audio file as message in Cloudamqp?

I'm guessing I need its byte stream and send it as a JSON. But I'm not sure if that is possible. Or do I just send the link of the location of the audio file for download?

Higgs
  • 550
  • 5
  • 18
  • 1
    Handling large messages on RabbitMQ might not be the best of moves. Maybe your other idea is better, i.e. upload the audio file to another location, then send the location of the file within the message? – Nick Mar 08 '16 at 14:51

1 Answers1

0

The message body is a buffer, you can put what you prefer inside.

JSON, ANS1, XML or buffer audio.

Gabriele Santomaggio
  • 21,656
  • 4
  • 52
  • 52