Skip to content

Commit 0567ed7

Browse files
authored
Update read-from-existing-files.md
1 parent 1b8b27e commit 0567ed7

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

programming/javascript/faq/read-from-existing-files.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,19 @@ needAutoGenerateSidebar: false
1010

1111
[<< Back to FAQ index](index.md)
1212

13-
Yes, the JavaScript SDK supports reading from a file in local memory. This can be achieved via the `BarcodeReader` class instead of the `BarcodeScanner` class.
13+
Yes, the JavaScript SDK supports reading from a file in local memory.
1414

15+
## Version 10.x
16+
```javascript
17+
let router = await Dynamsoft.CVR.CaptureVisionRouter.createInstance();
18+
// Use the router to perform a job.
19+
let results = await router.capture("blob:https://demo.dynamsoft.com/afb84bd2-e8cb-4b96-92b6-36dc89783692", "ReadSingleBarcode");
20+
// ...
21+
// Release the resources after the job is finished.
22+
router.dispose();
23+
```
24+
25+
## Version 9.x
1526
```javascript
1627
let reader = await Dynamsoft.DBR.BarcodeReader.createInstance();
1728
let results = await reader.decode(imageSource);

0 commit comments

Comments
 (0)