I have a scenario for unzip the files at server side using web services. I just upload the zip file to server. By using web service i have to unzip that file can any system permissions are required. Can any body give me a piece of code in C#
views:
28answers:
3Is there any system permissions are required to unzip the files through Webservices at server side
Obviously write permissions on the directory the file is unzipped to, write on the folder your web-service saves the zip file to when it's uploaded, and read on the zip file that's been saved to unzip it.
If you're after a zip component for C#, look at SharpZibLib (open-source) or Xceed Zip (commercial.)
You'll basically need to have the account that the service is running under (ASPNET for example if under IIS) have permissions to write files for the directory you'r using
Assuming you are using the GZipStream in the System.IO.Compression namespace, there are no particular permission sets that you need to have granted in order to use it.
However, if you are persisting to disk, you identity the web service is running under (or the user connected to the web service, if you are impersonating them) most definitely need to have access to where you are writing the unzipped data.
On a side note, you should make sure that you are using the Soap Message Transmission Optmimization Mechanism if you are transferring large amounts of binary data across the line.