TWAIN Working Group

Newsletter Signup
Donate
Help keep TWAIN free
  • About TWAIN
    • What’s New?
    • News
    • Events
    • Membership
    • Consider a Donation
    • Contact Us
  • Why TWAIN?
  • Developers
    • Driver Developer
    • Application Developer
    • TWAIN Features
    • Specification & Tools
    • Self Certification Process
  • Support Forums
  • Scanner End-User
  • Find Certified Drivers
    • Facebook
    • LinkedIn
    • Vimeo

How to I get the filename?

Forums › TWAIN Classic › How to I get the filename?

  • This topic has 3 replies, 3 voices, and was last updated 14 years, 10 months ago by spike.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • June 6, 2006 at 8:47 pm #21955 Reply
    Anonymous
    Participant
    • Topics - 60
    • Replies - 107
    • Total Posts - 167

    (very newbie for Twain)

    I am using a Delphi 2005 interface to the twain stuff. I have successfully pulled images out of a Canon G6 camera using memory mode.

    I would like to know the filename of the file selected by the user. How can I get that?

    June 14, 2006 at 7:59 am #23414 Reply
    spike
    Participant
    • Topics - 10
    • Replies - 139
    • Total Posts - 149

    Hey Guest – I’m guessing this is an image stored in the camera’s onboard memory, and you want to find the name that the camera stored it under? How important is this to you? Because the answer is probably “you can’t”, but it will take a lot of work to confirm that, unless you can get a definitive answer from a Canon camera TWAIN guru. (Of which, there may be only one in the world, and he lives in Japan…) TWAIN doesn’t have this concept at all, so your only hope is if Canon has provided some special back-door way to get that info – perfectly possible to fit into the TWAIN interface, but in my experience the camera vendors very very rarely take the trouble to do such things.

    June 14, 2006 at 11:40 am #23415 Reply
    mtiede
    Participant
    • Topics - 0
    • Replies - 1
    • Total Posts - 1

    Thanks for the response. I downloaded the 550+ pages of Twain documentation and haven’t had the time yet to peruse it. Sounds like I won’t be using the cameras file name…

    Can you have twain Delete the image just downloaded?

    My guess is no, if you can’t get the filename.

    Thanks again.

    June 14, 2006 at 6:56 pm #23416 Reply
    spike
    Participant
    • Topics - 10
    • Replies - 139
    • Total Posts - 149

    Hi mtiede – Please forgive the plug: Our TWAIN developer library includes a utility called ‘Twirl’ that makes it easy to examine all the ‘capabilities’ of a TWAIN device. If your camera is providing the filename of an image, offering it as the value of a capability would be the simplest technique. You don’t have to license our library to use Twirl, it’s part of the free toolkit download and it keeps working even after the trial period expires.

    Deleting files from the camera: You are wrong in theory but I think right in practice. TWAIN has a whole ‘filesystem’ feature that in theory would allow you to examine the filesystem of the camera, and do all the usual stuff to files – get their names, rename them, delete them. The little problem is that I have never heard of this being implemented by any camera vendor… or actually, by anybody except Kodak.

    Have you looked at WIA? It is much more camera friendly – but basically limited to Windows XP and ME. Still – that’s less of a limitation every day that goes by.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: How to I get the filename?
Your information:




Quick Links

Service Providers
TWAIN Support Forums
Membership
Contact Us
Privacy Policy

Newsletter Signup

TWAIN Working Group Family

TWAIN Working Group
TWAIN Direct®
TWAIN Resources
TWAIN Certified Drivers
PDF/raster

  • Facebook
  • GitHub
  • LinkedIn
  • Vimeo

Recent Topics

  • TWAIN for dental imaging integration
  • PDF/R For who and where?
  • Making searchable PDF with PDF/R
  • Backward compatibility with PDF/A and traditional PDF
  • could not open the twain source. Make sure there is a valid source for your sca
  • Quarterly Newsletter
  • TWAIN Working Group Membership
  • Logo Usage
  • TWAIN License
  • Contact Us
Privacy Policy • Privacy Tools • Copyright © 2021 TWAIN Working Group • by iHwy, LLC • Log in

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.