title: Get the image file of chrome.tabs.captureVisibleTab
body: <p>I want to capture current page of Chrome in Chrome extension. Then I find</p>
  
  <pre><code>chrome.tabs.captureVisibleTab(integer windowId, object options, function callback)
  </code></pre>
  
  <p>The callback function is like</p>
  
  <pre><code>function(string dataUrl) {...};
  </code></pre>
  
  <p>When I try to use this API, the dataUrl I get is like</p>
  
  <pre><code>data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgMCAgMDAwMEAwME…OdiCJJMxdVYyueT/tGodJ0nTdBsks9Ogt7G0RmZYIAFRcnJwOw9B0AwBgAUUV9AZFeiiigD//Z...
  </code></pre>
  
  <p>But I want to use this image file location or save it to another location. So how can I achieve this?<br>
  Or Is there any other way to capture a web page screenshot and then save this page as a file in chrome extension?</p>