我想使用 Windows 10 iot
核心访问 raspberry pi2
上的一些文件。
我想知道如何使用它的地址?
在 Windows 中,可以使用 c:\a\b\c.txt
这样的地址访问驱动器和目录。
ms-iot
文件系统和地址是如何组织的?
我也搜索了存储卡,但找不到我确信存储卡上存在的文件。该文件是从网络摄像头以语法方式捕获的图片,并通过 belo 代码保存在设备上
takePhoto.IsEnabled = false;
recordVideo.IsEnabled = false;
captureImage.Source = null;
photoFile = await KnownFolders.PicturesLibrary.CreateFileAsync(
PHOTO_FILE_NAME, CreationCollisionOption.GenerateUniqueName);
ImageEncodingProperties imageProperties = ImageEncodingProperties.CreateJpeg();
await mediaCapture.CapturePhotoToStorageFileAsync(imageProperties, photoFile);
takePhoto.IsEnabled = true;
status.Text = photoFile.Path;
IRandomAccessStream photoStream = await photoFile.OpenReadAsync();
BitmapImage bitmap = new BitmapImage();
bitmap.SetSource(photoStream);
captureImage.Source = bitmap;
我使用status.text
中的路径来访问文件,但没有文件
提前致谢
最佳答案
您可以尝试通过网络上的 UNC 路径访问本地文件系统。由于它是 Windows 操作系统,因此具有默认的管理员共享。
例如:\\192.168.1.123\C$
然后,系统将提示输入设备的管理员用户详细信息。
另请查看此博客文章,了解通过 IoT 仪表板访问它的方法:http://www.purplefrogsystems.com/paul/2016/06/controlling-your-windows-10-iot-core-device/
关于file - 如何在树莓派 Windows 10 物联网上访问从网络摄像头捕获的图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38082951/