title: Send images with their names in one message - RabbitMQ (Python 3.X)
body: <p>I'm currently trying to build a system to send images to multiple remote servers in order to do some Open_CV and tesseract on pictures.</p>
  
  <p>On one server it's okay because I rename my image into the folder before to send (first image sended is automatically named Image_0) </p>
  
  <p>And then rename them again on reception, same order so the name is corresponding for the same image (Image_0 first sended and first received so named Image_0 in both local and remote) to make reading names easier when receiving results.</p>
  
  <p>I receive then at the end of traitment a .txt file on local with the results of images (MRZ areas) like "Image_0 results XXXXXXXX&lt;&lt;&lt;
  
  <p>My Problem ---></p>
  
  <p>I want now to use multiple remote servers and use WORKQUEUE with rabbitMQ in order to do a basic workflow orchestration and reduce process time for my images samples.</p>
  
  <p>How can I send the name of an image with that image in base64 to have corresponding names at the end in my .txt result file because my current method won(t work with multiple remote servers ?</p>
  
  <p>Thanks for your help !</p>
  
  <p>Here is how I send my images currently:</p>
  
  <pre><code>for file in natsorted(os.listdir()):
      end_name=file[-4]+ file[-3]+ file[-2]+ file[-1]
      if (end_name != ".txt"):
  
          try:
              with open(file, "rb") as image:
                  message = base64.b64encode(image.read())
  
              channel.basic_publish(exchange='topic_logs', 
              routing_key=routing_key, body=message)
              print(f"{file} || sended on topic %r \n" % (routing_key))
  
          except IndexError:
              print("No image given ! ")
              sys.exit(1)
  
          os.rename(file,"Image_"+str(ComptNames)+".png")
          ComptNames=ComptNames+1
  </code></pre>