I have looked through the tutorials on rabbitmq and find it useful.
But I can't find a document telling how to send files via rabbitmq, using pika.
Code examples are preferred, and other libraries other than pika are acceptable.
I have looked through the tutorials on rabbitmq and find it useful.
But I can't find a document telling how to send files via rabbitmq, using pika.
Code examples are preferred, and other libraries other than pika are acceptable.
I've done this by using base64encode.
I build a json object - example:
data = {
filname = 'myfile.txt',
b64 = 'the base64 representation of the file'
}
Then, at the consumer side
base64decode :)
You can send file name as a message and on consumer side you can setup passwordless scp to fetch file from remote machine hosting the file.