Dear friends,

 

I am  using Python 2.7.3.

 

I like to transfer a image file via python to RabbitMQ so I configured
image lib in my system.

 

I am using the below program for the image transfer 

 

channel.exchange_declare(exchange='testing_room1',type='direct',durable=
True,)

channel.queue_declare(queue='Testing', durable=True)

data="D:\\P.jpg"

file=jpeg.compress(data, w, h, b)

message =file

channel.basic_publish(exchange='testing_room1',routing_key='testing',
body=message)

 

But I am getting the error while running the program. Requesting your
guidance.

 

Thanks and Regards 

 

Robert tona felix.J

 

_______________________________________________
Image-SIG maillist  -  Image-SIG@python.org
http://mail.python.org/mailman/listinfo/image-sig

Reply via email to