Thanks for downloading Dynamsoft Barcode Reader Package!
Your download will start shortly. If your download does not begin, click here to retry.
The following steps guide you through how to deploy the library on your own server.
Locate the dist/ directory under the installation folder of the library and simply copy the entire directory to your server. The dist/ folder should contain the following files:
dbr.js
// For <script>
dbr.browser.mjs
// For <script type="module">
dbr.scanner.html
// Scanner default UIdbr-<version>.worker.js
// A worker thread for decodingdbr-<version>.wasm.js
// Compact Edition JSdbr-<version>.wasm
// Compact Edition WASMdbr-<version>.full.wasm.js
// Full Edition JSdbr-<version>.full.wasm
// Full Edition WASMIf the resource files (e.g.,wasm
files) are not placed in the same directory as dbr.js
, you will need to specify the path using the API engineResourcePath
before calling loadWasm
or createInstance
.
Dynamsoft.BarcodeReader.engineResourcePath = "url/to/the/dir/";
Set the MIME type for .wasm
to application/wasm
.
Different servers are configured differently. Here are some popular ones:
mime.types
Web.config
web.xml
npm mime
A full license is required for deployment. If you have not purchased a license yet, please visit our online store.
If you don’t have an Dynamsoft account yet, sign up here. Be sure to use the same email that was registered for the purchase.
Once logged in, click License in the left menu bar to show your purchased license(s).
Under Status, click Activate Now to specify a domain to bind your license key. The domain binding is a security feature to protect your license, optional but highly recommended.
A few examples of the domain:
<!-- Please visit https://www.dynamsoft.com/customer/license/trialLicense to get a trial license. -->
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.6.0/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
In the above sample code, simply replace PRODUCT-KEYS
with your activated key.
version 7.6.0