Sharepoint Server 2010 中的 zip 提取
如何在 sharepoint server 2010 中上传和解压 zip 文件?
how to upload and extract zip file in sharepoint server 2010?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
一个解决方案可能是使用文档库上传 zip 文档,然后在其上连接一个事件处理程序来拦截上传的文档并解压缩它们,然后您可以决定如何处理它,您甚至可以存储解压缩的版本并删除原始文件。
您可以在此处查看有关如何为文档库创建事件处理程序的示例:
http: //karinebosch.wordpress.com/walkthroughs/event-receivers-walkthrough2/
A solution might be to use a Document Library to upload the zip documents and then hook up an event handler on it to intercept uploaded documents and unzip them, you can then decide what to do with it, you can even store the unzipped version and drop the original file .
You can see an example here on how to create an event handler for a document library:
http://karinebosch.wordpress.com/walkthroughs/event-receivers-walkthrough2/
用于处理 Zip 文件(或任何可能很大的文档)的事件接收器方法有一些限制,例如在解压缩过程中可能会使用大量服务器内存,或者如果运行时间太长,线程将被 IIS 终止,这意味着您将无法处理任何重要的 zip 文件。
这里有一个包可以处理这些问题以及更多问题:
http://www.blackbladeinc.com/en-us/products /wsszip/Pages/WhatsNew.aspx
该软件处理的一些仅使用事件接收器很难完成的操作包括:
The event receiver approach for working with Zip files (or any potentially large documents) has several limitations, like potentially using lots of server memory during the unzip process or having the thread be terminated by IIS if it takes too long to run, which means you won't be able to handle any non-trivial zip files.
There's a package that handles these issues and more here:
http://www.blackbladeinc.com/en-us/products/wsszip/Pages/WhatsNew.aspx
Some of what that software handles that are hard to do with just an event receiver include: