You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: programming/javascript/faq/read-from-existing-files.md
+12-1Lines changed: 12 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,8 +10,19 @@ needAutoGenerateSidebar: false
10
10
11
11
[<< Back to FAQ index](index.md)
12
12
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.
14
14
15
+
## Version 10.x
16
+
```javascript
17
+
let router =awaitDynamsoft.CVR.CaptureVisionRouter.createInstance();
18
+
// Use the router to perform a job.
19
+
let results =awaitrouter.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
15
26
```javascript
16
27
let reader =awaitDynamsoft.DBR.BarcodeReader.createInstance();
0 commit comments