从C#访问iPad图片 [英] Access iPad pictures from C#

查看:233
本文介绍了从C#访问iPad图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以通过Computer\Apple iPad \ Internal Storage \ DCIM \ 860OKMZO在iPad上访问图片,但如果我想启动FileSystemWatcher,这不是C#识别的路径。

I can access pictures on my iPad via "Computer\Apple iPad\Internal Storage\DCIM\860OKMZO", but this is not a path that C# recognises if I'd want to start a FileSystemWatcher.

访问这些文件的方法是什么?我假设如果Explorer了解路径,那么C#也是如此。

What would be the way to access these files? I presumed that if Explorer understands the path, so would C#.

推荐答案

有几个问题需要克服。

There are several issues to overcome.

要访问设备,您可能需要该名称(众所周知的 NT命名空间设备名称)。

To access the device, you might need the name (a well known NT Namespace device name).

开我的电脑,我可以在\.\IPOD0 \找到我的iPhone。

On my computer, I can find my iPhone at \.\IPOD0\ for example.

但是,iPhone / Pad / Pod没有使用标准文件系统在浏览时。它使用DCF(如果你使用Windows资源管理器查看内部存储属性,你会看到)。这将是相机文件系统的设计规则

However, the iPhone/Pad/Pod isn't using a standard file system when you browse it. It's using DCF (if you look at the "Internal Storage Properties" using Windows Explorer, you'll see that). That would be the Design rule for Camera File System.

在Windows上,由于这些设备报告为DCF文件系统,您可以调查WIA和一个示例(在C ++中),如这个

On Windows, as these devices are reporting as DCF file systems, you might investigate the WIA and an example (in C++) like this.

唉,这不是FileSystemWatcher。遗憾的是,FileSystemWatcher(以及其他本机Windows文件操作)不适用于作为DCF文件系统响应的设备。

Alas, that's not a FileSystemWatcher though. Unfortunately, the FileSystemWatcher (and other native Windows file operations) do not work with devices that respond as DCF file systems.

这篇关于从C#访问iPad图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆