在asp.net中使用文件上传控件时从zip文件中获取.Doc文件 [英] get .Doc files from a zip file while using fileupload control in asp.net

查看:78
本文介绍了在asp.net中使用文件上传控件时从zip文件中获取.Doc文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


在服务器中有一个".Dot"文件,从客户端计算机,我们需要浏览一个zip文件,并需要访问该zip文件夹中的每个".Doc"文件,并与".Dot"建立关系. '文件.

在Windows应用程序中,我们借助opendialog box成功完成了此操作.但它不适用于MAC计算机,因此我们需要使用webapp

1,在浏览zip文件时,我们需要从客户端计算机获取完整路径
2,需要从zip文件夹访问每个``.Doc''文件


所以请给出解决方案

谢谢与问候,
Soumya

Hi All,


In server there is one ''.Dot'' file and from client machine we need to browse one zip file and need to access each ''.Doc'' file in that zip folder and make a relation with the ''.Dot'' file.

In windows app we have done it successfully with the help of opendialog box . but it will not work in MAC machine so we need to work with webapp

1,when the time of browsing a zip file we need to get the full path from the client machine
2,Need to access each ''.Doc'' file from the zip folder


So pls give the solution

Thanks& regards,
Soumya

推荐答案

如果不创建ActiveX控件,将无法直接访问客户端计算机上的zip文件.运行中的安全沙箱浏览器将阻止这种情况.想一想.您希望网站能够访问本地计算机上的文件吗?

您需要做的就是上传zip文件,然后像在Windows应用中一样在服务器上对其进行处理.
Without creating an ActiveX control you will not be able to directly access the zip file on the client machine. The security sandbox browsers run in will prevent this. Think about it a moment. Would you want a website to be able to have access to read files on your local machine?

What you will need to do is upload the zip file and process it on the server as you have in the Windows app.




感谢您的答复


以下链接对我有帮助

http://www.codeproject.com/Articles/25891/ASP-NET-Zip-Entry-Handler#xx2572254xx

谢谢与问候,
Soumya
Hi mark,

Thanks for your reply


The below link which helped me

http://www.codeproject.com/Articles/25891/ASP-NET-Zip-Entry-Handler#xx2572254xx

Thanks& regards,
Soumya


这篇关于在asp.net中使用文件上传控件时从zip文件中获取.Doc文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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