Table of contents

Can I read barcodes from existing files?

« Back to FAQ index

Yes, the JavaScript SDK supports reading from a file in local memory.

Version 10.x

let router = await Dynamsoft.CVR.CaptureVisionRouter.createInstance();
// Use the router to perform a job.
let results = await router.capture("blob:https://demo.dynamsoft.com/afb84bd2-e8cb-4b96-92b6-36dc89783692", "ReadSingleBarcode");
// ...
// Release the resources after the job is finished.
router.dispose();

Version 9.x

let reader = await Dynamsoft.DBR.BarcodeReader.createInstance();
let results = await reader.decode(imageSource);

this article shows how to read barcodes from existing images and a list of supported input types.

This page is compatible for:

Is this page helpful?

YesYes NoNo