Click here to Skip to main content
13,004,094 members (106,810 online)
Rate this:
Please Sign up or sign in to vote.
See more:
Hi community.

I want to download pictures from my Nikon Coolpix Camera with a C# application. When I try to use a FileOpenDialog and select files on the camera, windows copies the pictures to a temporary folder and returns that path. Is there a possibility to let my application access the pictures directly without temporary files?

Thanks in advance!
Posted 6-Oct-12 6:14am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

When you plug a Nikon camera into your computer via USB it basically gets added as a flash drive. Because of this you can do pretty much any file operation with the images in the folders on that drive.
digitalshow 6-Oct-12 15:59pm
Like I said, in my case it doesn't behave this way. Windows Explorer shows the camera as a portable device. It shows the path as "Computer\S9100\Wechselmedien" (German) but if I try to create a DirectoryInfo with that path it can't find the path.
Marcus Kramer 10-Oct-12 10:52am
You'll have to use the drive letter assigned to the device instead of the virtual path that Windows is creating. If you open an instance of Windows Explorer and then plug in your device you should see a new drive appear on there. (I'm not assuming you don't know this, I'm just trying to be as clear as possible) You should be able to navigate using that new drive using DirectoryInfo. (Sorry for the slow response, I must have missed the email of your comment)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170627.1 | Last Updated 6 Oct 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100