You can add parameters to this method if needed. The productKeys is set using this instance: Dynamsoft.GetField("DBR").GetField("BarcodeReader").SetField("productKeys","")Ĭreating a Barcode Reader to Decode Local Images Including the JavaScript Libraryī4J: global Dynamsoft instance is created to call the APIs: Private Dynamsoft As BANanoObject Use this project as the base and redesign the layout using the Abstract Designer as below.īy clicking the Load Image button, BANanoFiles is used to pick a local image and load it onto the page by converting it to base64. Creating a BANano Project For the Web Barcode Readerĭownload BANano and extract the Skeleton demo. We may need to translate the HTML and JavaScript to B4J code. We can learn about the usage of the JavaScript version of Dynamsoft Barcode Reader by looking at the HelloWorld example. Let’s try building a web barcode reader using BANano and Dynamsoft Barcode Reader.įirst, we create the basic UI and then we integrate Dynamsoft Barcode Reader to decode local images and video streams. The barcode decoding can be done on the client-side, which is a good match for BANano. It provides a JavaScript version that uses WebAssembly. The project can run purely in the browser.ĭynamsoft Barcode Reader is written in C++.
It can transpile everything you write in B4J to Javascript, HTML, and CSS. A third-party library, BANano, makes this possible. By default, it cannot be used to create web applications without a server. In the B4X developing suite, B4J is used to develop desktop apps based on JavaFX or server apps based on Jetty.