title: How to store the barcode image generated from barcodescanner in phonegap
body: <p>I am using barcodescanner.js plugin in my phonegap app and everything is working great for the following code.</p>
  
  <pre><code> var scanner = cordova.require("cordova/plugin/BarcodeScanner");
  
    scanner.encode(scanner.Encode.TEXT_TYPE, 123456789, function(success) {
               alert("encode success: " + success);
             }, function(fail) {
               alert("encoding failed: " + fail);
             });
  </code></pre>
  
  <p>The barcode image is displayed through this line </p>
  
  <blockquote>
    <p>alert("encode success: " + success);</p>
  </blockquote>
  
  <p>Now I like to store this image into my local db or lets say create a new screen and show there. How do I get handle to the image from this "success" data. I tried to see the API in github and over internet but no one talks about it. Perhaps I am missing a big point here?? Any help is appreciated.</p>