Hi all:
How to download a file via web service ? And how the client application accept this? I write down the code as below in the client app, it throws an exception "Access Denied"
wsDownload.wsDownloadFile downFile = new wsDownload.wsDownloadFile();
byte[] file = downFile.DownloadFile(strFileName, "", "", "");
MemoryStream mStream = new MemoryStream(file);
any response is appreciated.
From stackoverflow
-
"Access denied" probably just means the local web service user doesn't have read access to the local copy of the file.
Ron
-
It's probably a matter of ntfs permissions on the service side. You should grant read permissions on the folder that contains the file you are downloading to the user account under which is running the WS, usually IIS_WPG.
0 comments:
Post a Comment