I have a web service (.asmx) that takes an array of bytes of an image as a parameter and saves the image on our server. It works fine, other than the fact that I cannot do anything with the file afterwards as I apparently don't have the permissions.
When I use FileStream in my code to save the file to my server folder, is there any where in code that I can set read/write/execute permissions?
**EDIT: Our server is a Linux server
I wrote the web service on my Windows machine (Visual Studio 2010) and packaged it in MonoDevelop for deployment to our Linux server. The folder where I store the images is in the same folder as my .asmx file (on the Linux server). Whenever my web service stores an image in that folder the permission default to rw-------. I would like them to default to rwxrwxrwx.