title: how to create an image file on server from dataurl
body: <p>I have an image in a dataurl format, like:</p>
  
  <pre><code>data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgMCAgMDAwMEAwME…iiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigD/2Q== 
  </code></pre>
  
  <p>I need to convert this string in JavaScript to another string which can be directly copied to a blank jpg file so that it can be viewed by the user.<br>
  Any idea how to achieve this?</p>