title: Convert octet-stream to image
body: <p>I need to fetch a file using a $http.get.
  The data returns as application/octet-stream
  But i know this file is an image.</p>
  
  <p>How can i display this file as an image?</p>
  
  <p>I tried </p>
  
  <pre><code>var nuroImage = new Image();
  nuroImage.onload = function {
    scope.imageSrc = this.src;
  }
  
  $http(req).then(
    funciton(response) {
      nuroImage.src = "data:application/octet-stream," + response.data
    }
  </code></pre>
  
  <p>I get 200ok but the image isn't showing </p>
  
  <p>Is it possible to transform octet-stream to jpeg/png?</p>