title: Python get rid of bytes b' '
body: <pre><code>import save
  
  string = ""
  
  with open("image.jpg", "rb") as f:
      byte = f.read(1)
      while byte != b"":
          byte = f.read(1)
          print ((byte))
  </code></pre>
  
  <p>I'm getting bytes like:</p>
  
  <p><code>b'\x00'</code></p>
  
  <p>How do I get rid of this <code>b''</code>?</p>
  
  <p>Let's say I wanna save the bytes to a list, and then save this list as the same image again. How do I proceed?</p>
  
  <p>Thanks!</p>