Skip to content

yushulx/blazor-barcode-qrcode-reader-scanner

Repository files navigation

Blazor Barcode and QR Code Reader

The sample shows how to implement a web barcode and QR code reader app by using Dynamsoft JavaScript Barcode SDK and Blazor WebAssembly.

Usage

  1. Get a trial license from Dynamsoft portal and then update the following line in wwwroot/jsInterop.js:

    Dynamsoft.DBR.BarcodeReader.license = "DLS2eyJoYW5kc2hha2VDb2RlIjoiMjAwMDAxLTE2NDk4Mjk3OTI2MzUiLCJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSIsInNlc3Npb25QYXNzd29yZCI6IndTcGR6Vm05WDJrcEQ5YUoifQ==";
  2. Run the app:

    dotnet run
    
  3. Visit locahost:5000 to read barcode files or do a live scan:

    code93 image

    blazor barcode sample

Online Demo

https://yushulx.me/blazor-barcode-qrcode-reader-scanner/

Blog

How to Build Web Barcode Reader with Blazor WebAssembly