Generate barcode from text and convert it to base64
<p>Does someone knows a tool to generate barcode image (preferably code 39) from a string and converts it to base64 string, something to use like this:  </p>

<pre><code>var text = "11220"; // text to convert
var base64Str = textToBase64Barcode(text); // function to convert its input 
        // to an image formatted in a base64 string like : "data:image/jpeg;base64..."
</code></pre>

<p>?</p>