Last post Feb 28, 2018 02:47 AM by Edward Z
Feb 26, 2018 12:46 PM|Swap_PG|LINK
I have a Client WEB SERVICE which gives send Few files to my MY WCF SERVICE. They are sending the data in the file byte array , and these files we need to created on the remote server location lets say ... //126.96.36.199//ContentFolder//
. So my question is when i was using WEB Forms in that FileUpload.Saveas Works properly. BUT from WCF service how can i create write these files in that folder. Please provide Suggestions
Feb 26, 2018 01:10 PM|PatriceSc|LINK
ContentFolder is a network share on the 188.8.131.52 server and you were saving at the same location with Web Forms ?
It shouldn't make any difference. It really depends which kind of communication is enabled betwen those two servers.
Assuming network sharing see for example
Feb 28, 2018 02:47 AM|Edward Z|LINK
>> from WCF service how can i create write these files in that folder.
Where did you host WCF Service? Is it hosted on the remote server or different server? If it is in the remote server, you could create the file directly by File class.
If not, as the suggestion from PatriceSc, you may make the folder as shared folder first, then we could access and write the content from other servers.