title: Why are my images received as string? (ROS)
body: <p>I already found my mistake. Should I delete this question?</p>
  <p>I have a very very simple subscribe node. (Unfortunately searching the internet the usual examples use Strings, although a book of mine uses Ints)</p>
  <p>The code is</p>
  <pre><code>import rospy
     
  from sensor_msgs.msg import Image
  from cv_bridge import CvBridge
  
  import rosbag
  
  
  def image_callback(msg):
      #print(msg.data.header)
      print(type(msg.data))
      print(len(msg.data))
  
  
  
  
  def image_recorder():
      rospy.init_node('image_recorder', anonymous=True)
      sub = rospy.Subscriber('image_results',Image, image_callback)
      rospy.spin()
  
  
  if __name__ == '__main__':
      try:
          image_recorder()
      except rospy.ROSInterruptException:
          pass
  </code></pre>
  <p>Now, what is the problem?
  The output of this is:</p>
  <pre><code>&lt;type 'str'&gt;
  1184260
  </code></pre>
  <p>Why? The messages that we are receiving are Images, (that is why I try to do <code>msg.data.header</code> and fail!)</p>
  <p>How can I recover the images?</p>
  <p>And no, I do not need to use CvBridge to convert them to opencv Images. I just need the ROS images</p>