title: Ionic: show image from file path from device
body: <p>In an Ionic app the user can select an image from his device (using <a href="https://github.com/wymsee/cordova-imagePicker" rel="nofollow">this plugin</a>). Then, with the path from the image (<code>file://whatever</code>), I need to show the image in the webview.</p>
  
  <pre><code>plugins.imagePicker.getPictures(
      results =&gt; {
          this.avatar_path = results[0]
      }
  )
  </code></pre>
  
  <p>I cannot use its path (<code>results[0]</code>) in the src of the image:</p>
  
  <pre><code>&lt;img src="{{ avatar_path }}" /&gt;
  </code></pre>
  
  <p>Won't work. Do I need to get the binary from the file (using File API) and set as <code>&lt;img&gt;</code> src?</p>