Click here to Skip to main content
15,867,756 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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!
Ingo
Posted

1 solution

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.
 
Share this answer
 
Comments
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.
fjdiewornncalwe 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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900