Windows 8、SkyDrive 和 OpenPackage zip 文件
我在常规的 asp.net/iis 服务器上有一个文件夹和 xml 文件的结构(基于 xml 的文件数据库)。我使用 WCF -> 通过网络修改数据库获取/发布 xml。这很好用。
为了将所有文件收集到一个更易于管理的单元中,我使用了 OpenPackage zip 文件。我仍然可以使用 WCF 服务逐个文件修改其状态,而无需来回传输整个文件。
现在我想把这个基于 zip 的数据库放在 SkyDrive 上。问题是,我是否能够通过 SkyDrive 以某种方式从该文件获取和发布单独的内容文件?或者我现在在修改文件的状态时必须来回发送整个文件吗?
由于 OpenPackage 是 .NET 框架的一部分,而 SkyDrive 将成为 Windows 8 和资源管理器的集成部分,我希望能够在服务器上打开一个包,并且只从中下载单个文件,也可以上传单独的文件。有谁知道吗?
即使文件已打开压缩并且必须首先解压缩整个 zip,理论上这也可以在返回请求的文件之前在 SkyDrive 服务器上完成。我希望微软能够看到它的用途,并将其添加到 SkyDrive API 中(如果他们还没有这样做的话)。
解决方法是不使用 zip 文件并将所有解压后的单个文件存储在 SkyDrive 上。但我认为这对用户来说不太容易管理。
I have a structure of folders and xml-files on a regular asp.net/iis server (a file based database in xml). I modify the database over the net using WCF -> get/post xml. This works fine.
To gather all files into a more manageable unit, I used a OpenPackage zip-file. I can still modify its state using my WCF-service, file by file, without having to transfer the entire file back and forth.
Now I want to put this zip-based database on SkyDrive instead. The question is, will I be able to somehow get and post individual content-files from/to this file through SkyDrive? Or do I now have to send the entire file back and forth when modifying it's state?
Since OpenPackage is part of the .NET-framework and SkyDrive will be a integrated part of Windows 8 and Explorer, i was hoping it would be possible to open a package while still on the server and only download individual files from it, and also upload individual files to it. Does anyone know?
Even if the file had compression turned on and the entire zip would have to be unpacked first, this could in theory be done on the SkyDrive server before returning the requested file. I hope Microsoft sees the use of this and adds it to the SkyDrive API, if they haven't already.
A work around would be to not use zip-files and store all individual files unpacked on SkyDrive. But this would not be very manageble by the user I think.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论