Home › Forums › TWAIN Classic › file transfer mode
- This topic has 8 replies, 5 voices, and was last updated 11 years, 7 months ago by gabe.
- AuthorPosts
Hi,
I know many different TWAIN scanning applications but none of them uses File Transfer Mode to transfer scanned image into application.
The question is Do you know such applications if so why do they need File Transfer Mode instead of others two modes?Thank you,
KirillHi Kirill,
> Do you know such applications if so why do they need File Transfer Mode instead of others two modes?
Would you please be more specific about this? There are three different modes that can be used to transfer data from the Source to the application: native, disk file, and buffered memory. To get more info about the advantages of each modes, you can refer to TWAIN Specification.
__________________________
Catherine Sea
TWAIN .NET Component | TWAIN ActiveX/Plug-inSure, I’ve read specification
It says:
“The disk file mode is ideal when transferring large images that might encounter memory
limitations with Native mode. Disk File mode is simpler to implement than the buffered mode
discussed next. However, Disk File mode is a bit slower than Buffered Memory mode and the
application must be able to manage the file after creation.”but from my experience I saw that applications used only either Native or Buffered memory modes. Also I don’t think that implementations of Buffered memory is more difficult than Disk file mode so Disk file mode looks useless 🙂 . Have you ever seen applications which would use disk file mode?
When the TWAIN spec 1.0 was written memory was not that cheap and available as it is today. Now we have enough RAM to take the full image into and TWSX_NATIVE or TWSX_MEMORY are fine for all typical applications. I recommend TWSX_FILE today only when the source can creates special or custom file formats which are required but not supported by typical applications.
Best regards,
KaijI use disk mode (all the apps I write use it). I picked File as it didn’t require the memory of native and was easier than buffered.
– 2 cents
Hey Gabe – I know this thread is 2 years old but – I just implemented file transfer mode in a driver, are any of your programs available in a trial version I could use for (temporary) testing? Or inexpensive enough that I might just buy a license?
Do you count on BMP file format support?
32-bit or 64-bit? If you’re looking for a 32 bit program opentwain is pretty inexpensive, it’s open source – http://opentwain.codeplex.com
And if you haven’t already tested your driver in with the sample app from twain you shoud – http://sourceforge.net/projects/twain-samples
Then of course run your driver with twister – http://www.eztwain.com/twister.htm
Far as I’m concerned if you get a clean report from twister you’re a god..
Thanks, I didn’t know about opentwain, and I wasn’t sure if it was worth bothering with the sample app. I’ll check them both out.
Far as I’m concerned if you get a clean report from twister you’re a god.
Heh. Well. My drivers usually get a clean report from Twister. One way or another 😉
opentwain is a library sample with two demo apps, one is a console the other has a gui.
should have mentioned, it relies on the CustomerDsData triplet to produce consistent scans. – if you don’t support CustomerDsData it won’t be useful.if you need anything lemme know
.
- AuthorPosts