Results 1 to 3 of 3

Thread: Digital Cameras - Always have DCIM folder?

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Aug 2005
    Location
    College Station, TX
    Posts
    4,521

    Digital Cameras - Always have DCIM folder?

    Not sure where to put this, but I am thinking about making a small image transfer program for digital cameras in VB.NET, but I have a question about the filesystems on these devices. For USB cameras (cameras that can transfer through USB cables), when you plug them in, the drive is listed as a removable disk drive. You can navigate this drive just like any other drive on your system, and am trying to figure out a way to know that any particular drive would happen to be a camera's drive.

    I noticed that on the camera I tested, there is a root "DCIM" folder, which then contains a subfolder of the camera name, which contains the actual pictures stored on the camera's memory card. Is this "DCIM" folder always going to appear? Regardless of the manufacturer of the camera, as long as it is recognized as a USB storage device/removable disk? I know that for many cameras this is the case, but are there others which have some other root folder other than "DCIM"? If not, then its just a simple matter of enumerating the drives looking for that root folder, then just drilling down to the pictures. Any comments would be appreciated.

  2. #2
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: Digital Cameras - Always have DCIM folder?

    A google for "digital camera DCIM folder standard" sure seems to indicate that the leaders are all using the DCIM folder standard. With some harder searching you might be able to pinpoint this to be an actual standard, but the links that get in the way might prove extensive...

    What if I copy my camera contents to a CD drive and leave the DCIM folder on that drive - and that CD is in. Won't you stumble upon it while enumerating as well?

    There must be a way to see that the "drive" is on a "camera"...

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Aug 2005
    Location
    College Station, TX
    Posts
    4,521

    Re: Digital Cameras - Always have DCIM folder?

    Quote Originally Posted by szlamany
    What if I copy my camera contents to a CD drive and leave the DCIM folder on that drive - and that CD is in. Won't you stumble upon it while enumerating as well?
    Well probably so and I had anticipated that, but all the program is going to do is allow to copy the pictures to another location, and possibly doing a batch resize or convert, so even if thats the case, it should still work, finding pictures (even though its not on a "cam"). Its not a main concern, but I don't know of any other "definite" ways for it to show as a camera, since, after all, it is showing as a USB mass storage device to the O/S, and not a "camera", which again, is not a major concern of mine, but if there was a definite way, I don't know it.

    It would show up as a "camera" if there was some sort of TWAIN or WIA driver installed for it, but Im not really wanting that, since the couple of cameras that I have and want to do this with are both seen through a regular USB mass storage device...
    Last edited by gigemboy; Oct 28th, 2006 at 03:04 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width