title: How do i get the scanned image from Scanner as an input for HTML File input field using web twain?
body: <p>How do i get the image output from Scanner as a file input for HTML File Input field. I am using the dynasoft web twain api for scanning the images.<a href="http://www.dynamsoft.com/Support/DWTGuide/Dynamic%20Web%20TWAIN%20SDK.html#Manual" rel="nofollow">http://www.dynamsoft.com/Support/DWTGuide/Dynamic%20Web%20TWAIN%20SDK.html#Manual</a></p>
  
  <p>Snippet to acquire the scan image - </p>
  
  <pre><code>    var DWObject = Dynamsoft.WebTwainEnv.GetWebTwain('dwtcontrolContainer');
      DWObject.IfDisableSourceAfterAcquire = true;    // Source will be closed automatically after acquisition.
      DWObject.SelectSource();                        // Select a Data Source (a device like scanner) from the Data Source Manager.
      DWObject.OpenSource();                          // Open the source. You can set resolution, pixel type, etc. after this method. Please refer to the sample 'Scan' -&gt; 'Custom Scan' for more info.
      DWObject.AcquireImage();
  </code></pre>
  
  <p>Snippet for file input -</p>
  
  <pre><code>&lt;input type="file" id="fileselect" accept="image/*,application/pdf" capture="camera" app-file-select="onFileSelect($files)" app-change="getFile($files)" app-model="file" style="display:none"&gt;
  </code></pre>
  
  <p>The Html file is being processed as a MultipartFile on the server side.</p>
  
  <p>Thanks in advance</p>