The sample shows how to implement a web barcode and QR code reader app by using Dynamsoft JavaScript Barcode SDK and Blazor WebAssembly.
-
Get a trial license from Dynamsoft portal and then update the following line in
wwwroot/jsInterop.js
:Dynamsoft.DBR.BarcodeReader.license = "DLS2eyJoYW5kc2hha2VDb2RlIjoiMjAwMDAxLTE2NDk4Mjk3OTI2MzUiLCJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSIsInNlc3Npb25QYXNzd29yZCI6IndTcGR6Vm05WDJrcEQ5YUoifQ==";
-
Run the app:
dotnet run
-
Visit
locahost:5000
to read barcode files or do a live scan: