Directory structure of mobile phones connected to a USB application

I need to find photos on external devices like cameras and mobile phones connected like a USB stick. Since I don't want to go through all drives, I was thinking about finding specific folders under root or deeper, for example. DCIM for cameras and start traverse from there.

For cameras, the directory structure is specified in the Design Rule for Camera File System (DCF), as always using the DCIM directory at root.

But I haven't found any rules for different mobile brands. Can you please help me and publish a catalog that stores your photos when you are connected to a mobile phone, like a USB stick along with your mobile brand?

I am looking for all major brands like Nokia, LG, Samsung, Sony Erricson, etc. (The iPhone connects as a camera under "camera and scanners" so I need TWAIN, but that works ...)

Thank you so much!

+2


source to share


4 answers


Lots of ways to get to images.

Device specific . Requires a lot of hardware to test. An easily annoying app might work with new device support.

  • Check for a known Vendor / Device ID on the USB bus with appropriate information on how to get to the data. Some may have their own methods for extracting images.

Disk Based Photos - Moving an entire disk makes it reliable, however the speed is slow.



  • For each removable disk in the system.
  • Check for "known" base folders
    • If found, navigate from base folder
    • Else, move the entire disk

TWAIN - based photos are not a clue with these

  • Search iphone, this will be to grab new photos or view previously taken pictures.
+3


source


My Blackberry Curve saves images to SD card X:\BlackBerry\pictures

by default.



0


source


My Samsung Omnia gives me the default

MCCS

in the root directory of the designated drive.

Please note that I must specifically enable USB file transfer on the phone, otherwise all files must come through the Windows Mobile Device folder.

0


source


I know this is a hack, but you can try something like this and then write (to the DB) the make / model / phoneet statistics in the future.

on Linux (command line) (This is an example)

ls /*/*.jpg

      

This will appear under the first directory level for any .jpg file.

ls /*/*/*.jpg

      

For the second directory

Again, this is just a hack and is not really recommended for production, but for testing to get a working path for a device, it might come in handy.

0


source







All Articles