I am using angular 7 and I want to scan a document and save it to database table.
I tried with ngx-document-scanner and Dynamic Web TWAIN from below links but it is not giving option to save it to database
https://www.npmjs.com/package/ngx-document-scanner https://blog.dynamsoft.com/imaging/using-dynamic-web-twain-angular-application/
Is there any other way to do this?
Thanks
Dynamic Web TWAIN is capable of interacting with physical document scanners via protocols including TWAIN | ICA | SANE on Windows | macOS | Linux. Have you got the document scanning part working in an angular application?
Once pages are scanned, the images will be transferred to the Dynamic Web TWAIN library and stored in memory or cached on the local disk. Then you can call a few APIs to encode the data into 1 of 5 formats (bmp, jpg, png, tif, pdf) and send the encoded data (file) in an HTTP Post request. After that, the data leaves the application and is no longer relevant to Angular. The mentioned API specifies a URL as the receiver for that HTTP request. Once the data reaches that URL, it's extracted and can then be saved into a database. So the question would be: 1 what format do you want the scanned images to be saved into? 2 what database and server-side language do you use?
For a simple demonstration, I'm pasting below the code snippet for that URL written in PHP for mySQL