title: Convert Python Bytes to String Without Encoding
body: <p>I am using Python 3.6 and I have an image as bytes:</p>
  
  <pre><code>img = b'\xff\xd8\xff\xe0\x00\x10JFIF\x00'
  </code></pre>
  
  <p>I need to convert the bytes into a string without encoding so it looks like:</p>
  
  <pre><code>raw_img = '\xff\xd8\xff\xe0\x00\x10JFIF\x00'
  </code></pre>
  
  <p>The goal is to incorporate this into an html image tag:</p>
  
  <pre><code>&lt;img src="'data:image/png;base64," + base64.b64encode(raw_img) + "' /&gt;"
  </code></pre>