Page 1 of 1

Cannot save scanned image

Posted: Wed Jun 08, 2011 11:02 pm
by imtiazbengali
I am using one of the demo example where Java Scripting is used to scan and save the images.

I did the following:

1. On the ASP.NET page, I click on the Scan Image button
2. A dialog box showing list of scanning devices attached to the PC is displayed.
3. I select the device from the list
4. Tha application starts the scanning process (I hear the scanning noise on the scanner attached to my local PC)
5. After scanning, no image is stored on my local machine.
6. On debugging the javascript code, I find that VSTwain.SaveImage(image index, path) function does not create any image file on the PC

Please help.

Re: Cannot save scanned image

Posted: Mon Jun 13, 2011 6:57 pm
by Alex
Hello,

You can check the result of saving using the VSTwain1.ErrorCode property:

Code: Select all

if (VSTwain1.SaveImage(0, "c:\test.tiff")  == 0)
  alert(VSTwain1.ErrorString)
Best regards, Alexander

Re: Cannot save scanned image

Posted: Tue Oct 07, 2014 1:15 pm
by vetrivel
I am getting following error code.

what is the possibility of this error

"35 Error at creating file."

Re: Cannot save scanned image

Posted: Tue Oct 07, 2014 4:21 pm
by Alex
Hello,
I am getting following error code.

what is the possibility of this error

"35 Error at creating file."
Error means that path is incorrect or you do not have writing rights to specified path.

Best regards, Alexander