Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Help to access Digital Camera from C#

Help to access Digital Camera from C#

Scheduled Pinned Locked Moved C#
csharplinuxhelptutorialquestion
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    AndersHolmstrom
    wrote on last edited by
    #1

    Hi, I need help to access the files on my digital camera. I have tryed to access it with

            String path;
            Shell32.ShellClass shell = new Shell32.ShellClass();
            Shell32.Folder2 folder = (Shell32.Folder2)shell.BrowseForFolder(
              this.Handle.ToInt32(), 
              "Select Folder...", 
              0, 
              Shell32.ShellSpecialFolderConstants.ssfDESKTOP 
            );
            path = folder.Self.Path;
    

    path = ";;{E211B736-43FD-11D1-9EFB-0000F8757FCD}\\devid:{6BDD1FC6-810F-11D0-BEC7-08002BE2092F}\\0000:" Unfortunately this path is not accessable with

                String \[\] files = Directory.GetFiles(path);
    

    Any idea how to access the files?

    L 1 Reply Last reply
    0
    • A AndersHolmstrom

      Hi, I need help to access the files on my digital camera. I have tryed to access it with

              String path;
              Shell32.ShellClass shell = new Shell32.ShellClass();
              Shell32.Folder2 folder = (Shell32.Folder2)shell.BrowseForFolder(
                this.Handle.ToInt32(), 
                "Select Folder...", 
                0, 
                Shell32.ShellSpecialFolderConstants.ssfDESKTOP 
              );
              path = folder.Self.Path;
      

      path = ";;{E211B736-43FD-11D1-9EFB-0000F8757FCD}\\devid:{6BDD1FC6-810F-11D0-BEC7-08002BE2092F}\\0000:" Unfortunately this path is not accessable with

                  String \[\] files = Directory.GetFiles(path);
      

      Any idea how to access the files?

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      Hi, what is all this? when I want to access image files on my Olympus, I just explore I:\DCIM\100OLYMP\ either with Windows Explorer or with my own code as in Directory.GetFiles(@"I:\DCIM\100OLYMP\");. Obviously the drive letter may vary, and the specific folder path may be different for other makes and models. [ADDED] If you don't know the drive letter, you can enumerate all candidates using Environment.GetLogicalDrives and try the Directory.GetFiles for each of them (assuming the path is unique). [/ADDED] :)

      Luc Pattyn [Forum Guidelines] [My Articles]


      Love, happiness and fewer bugs for 2009!


      S 1 Reply Last reply
      0
      • L Luc Pattyn

        Hi, what is all this? when I want to access image files on my Olympus, I just explore I:\DCIM\100OLYMP\ either with Windows Explorer or with my own code as in Directory.GetFiles(@"I:\DCIM\100OLYMP\");. Obviously the drive letter may vary, and the specific folder path may be different for other makes and models. [ADDED] If you don't know the drive letter, you can enumerate all candidates using Environment.GetLogicalDrives and try the Directory.GetFiles for each of them (assuming the path is unique). [/ADDED] :)

        Luc Pattyn [Forum Guidelines] [My Articles]


        Love, happiness and fewer bugs for 2009!


        S Offline
        S Offline
        Silvyster
        wrote on last edited by
        #3

        yeah, it's simple you don't need shell32. or maybe you asked the question in a wrong way.

        A 1 Reply Last reply
        0
        • S Silvyster

          yeah, it's simple you don't need shell32. or maybe you asked the question in a wrong way.

          A Offline
          A Offline
          AndersHolmstrom
          wrote on last edited by
          #4

          One of my cameras "Canon PowerShot SD750" is not shown as a drive (x:\) as my Nikon D50 does. It appears as "Scanners and cameras" in the explorer.

          C 1 Reply Last reply
          0
          • A AndersHolmstrom

            One of my cameras "Canon PowerShot SD750" is not shown as a drive (x:\) as my Nikon D50 does. It appears as "Scanners and cameras" in the explorer.

            C Offline
            C Offline
            Christian Graus
            wrote on last edited by
            #5

            Well, some Canon cameras you can access directly with their SDK. Check out the wrapper that Ben and I wrote, it's here on CP. Or, look into using WIA.

            Christian Graus Driven to the arms of OSX by Vista.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups