title: Angular4 show image from server
body: <p>I want to show an image in img tag :
  i am doing it that way </p>
  
  <p><strong>Component</strong> </p>
  
  <pre><code>this.file.url=this.sanitizer.bypassSecurityTrustUrl(window.URL.createObjectURL(this.file.url));
  </code></pre>
  
  <p><strong>Template</strong></p>
  
  <pre><code>&lt;img [src]="file.url"&gt;
  </code></pre>
  
  <p>I am getting this error</p>
  
  <pre><code>ERROR TypeError: Failed to execute 'createObjectURL' on 'URL': No function was found that matched the signature provided.
  </code></pre>