I'm working on a solution that assign tags (five ones) to scanned documents (who vary on page number, maybe 1, 2 or even 100).
I'm using a Scanning SDK to get (from visual c#, Wpf) a set of images the user want to scan, that SDK have a method (SaveToTiff) that saves all the scanned images into disk. The problem is that I need to store the index and images within a database (mysql) and that the user need to scan files continuously.
I've been working on a prototype and it's working, but I'm having a problem because the user ends of writing the tags for the scanned document before the SaveToTiff method ends, son when try to insert into the db (and read the files), files are not even stored.
I check for a method that return the images (on memory), and theres one that return a IntPtr but points not to the Tiff but to the native BMP that is to heavy.
Is there a way to show a "working..." message box while the documents gets stored on disk and then gets processed ( given that the scanner API doesn't has an event or something like that), or there's a way maybe more elegant to solve this.