title: Convert binary image data to image and display in HTML
body: <p>I'm working with Musicbrainsngs - the Python lib for Musicbrainz API. Making a request for some album artwork. </p>
  
  <pre><code>import musicbrainzngs as mb
  
  release_group_ID = '5c14fd50-a2f1-3672-9537-b0dad91bea2f'
  artwork = mb.get_release_group_image_front(release_group_ID)
  print(artwork)
  </code></pre>
  
  <p>The <a href="http://python-musicbrainzngs.readthedocs.io/en/v0.6/api/#musicbrainzngs.get_image" rel="nofollow noreferrer">documentation</a> says it'll return "The binary image data" in a string. </p>
  
  <p>My questions for you:
  What type of data is this- (Base 64 encoded PNG? How do I tell?)</p>
  
  <p>But more importantly - What do I do with this? How do I save this as an image, or display it as an image with HTML?</p>
  
  <p>The image data is 1mm characters- here's a short sample of the beginning: </p>
  
  <pre><code>b'x16\x00\xe0}\xc1\x17\xfb_U{R\xd43uL\xbf\xe33\xec3e(,\xa7p\x00\xa2+\x02   \x9c\x92\xb6\x0b\x00\x07\xf9x\xeaa\xd5\x99 i\xab$\xe2\x92\xa3Co\xb9`\xb9\x1cd\x911\x01[\x0c\xd0\x9c\xaa\x81\x08Q|\x13\xe4\xd9:c\xa47\xfe\xca*q\xf5\xd4O\xea\x0fi\x9c\xcc\xf8u\x88\x0b\x16\x11m?#F\x9d\x9a\xe8}I&amp;\xfe\xb5]t\xcf\xf0\x1f\xeb\xce\x9d\xa4iy^\x8b\xf7;2cde\xac\xd0\xc9\x12\x7f&lt;I$)\rI\x90\xe3j\xc2!D\xdbg\xfe&amp;\xf2:"rl;)\x98\n\x80\x9e \x1fS\x8e\x87\xce\xaa\xe0\x8a\xc2\x9b\'
  </code></pre>