We have a folder in our network with pdf-files generated from original paper documents scanned with a Code_128 bar-code (attached manually before scanning).
With the help of a small B4J console app that I wrote (PDFBarcodeReader), this app gets the image from a scanned pdf-file and then gets the value of the bar-code. The pdf-file is thereafter moved to another directory ("Processed files) and renamed from the original file-name generated by the scanner to a format such as "barcode-value.pdf".
Then we use a B4J-server implemented as a file-server to "serve" these pdf-files to users (the pdf-files are opened in a web-browser)
Currently the B4j console app is running on its own as a separate program (scheduled to run at certain intervals) and also the fileserver is running as a separate program. This solution works fine.
However, I was thinking that it might be nice to integrate the B4J console app into our B4J-server (File-server). This would mean that the B4J-server at certain times would be serving documents but also processing PDFs to get bar-codes. Would this be feasible or do you think this would slow down matters and might create problems? If it is possible, anything in particular I should think about when implementing the B4J console app into the server? Any tips?
BTW: I will post sometime in the future the B4J and Java sources of my PDFBarcodeReader which is written in B4J and using PDFBox and XZING as support libraries. I found solutions which do the same but they are very expensive. Much easier to implement it with B4X and you can customize according to your needs 100%. All this thanks to B4X!
With the help of a small B4J console app that I wrote (PDFBarcodeReader), this app gets the image from a scanned pdf-file and then gets the value of the bar-code. The pdf-file is thereafter moved to another directory ("Processed files) and renamed from the original file-name generated by the scanner to a format such as "barcode-value.pdf".
Then we use a B4J-server implemented as a file-server to "serve" these pdf-files to users (the pdf-files are opened in a web-browser)
Currently the B4j console app is running on its own as a separate program (scheduled to run at certain intervals) and also the fileserver is running as a separate program. This solution works fine.
However, I was thinking that it might be nice to integrate the B4J console app into our B4J-server (File-server). This would mean that the B4J-server at certain times would be serving documents but also processing PDFs to get bar-codes. Would this be feasible or do you think this would slow down matters and might create problems? If it is possible, anything in particular I should think about when implementing the B4J console app into the server? Any tips?
BTW: I will post sometime in the future the B4J and Java sources of my PDFBarcodeReader which is written in B4J and using PDFBox and XZING as support libraries. I found solutions which do the same but they are very expensive. Much easier to implement it with B4X and you can customize according to your needs 100%. All this thanks to B4X!