title: Octet-stream to PNG
body: <p>How can I convert BLOB data:application/octet-stream;base64 to data:image/png;base64 ?</p>
  
  <p>The image are shown anyway but the browser doesn't let me to open the image in new tab with right click.</p>
  
  <pre><code>$http({
      url: image,
      responseType: 'blob'
  }).then((resp)=&gt;{
      var reader = new FileReader();
      reader.onload = function(){
          $scope.model.view.image = reader.result;
      };
      reader.readAsDataURL(resp.data);
  });
  </code></pre>