I'm creating a WebService with some services that use FlexiCapture Engine 11.
Since multiple users will be making requests at the same time, then I needed to create a processors pool.
I followed the documentation and am using the OutprocLoader() method.
The problem is that when I run the following code I have an exception on the third line with the GetPicure() method.
IImageDocument imageDoc = document.Pages.ReadOnlyImage; IImage pageBWImage = imageDoc.BlackWhiteImage; IHandle hBitmap = pageBWImage.GetPicture(null, 0); System.Drawing.Image preprocessedImage = System.Drawing.Image.FromHbitmap(hBitmap.Handle); hBitmap.CloseHandle();
Bad variable type. (Exception from HRESULT: 0x80020008 (DISP_E_BADVARTYPE))
How to solve this?
How can I get my image in memory?
Does this link say it's impossible on FineReader Engine, but and in FlexiCpture Engine?