We have a setup of server and windows mobile device as a client. In server CSI script ready to accept single file from client.
In Desktop we have use WebClient.UploadFile method to upload file to server, but in windows mobile this isn’t implemented, till now we haven’t found any alternative method to achieve same.
Thanks in advance.
Ramanand
When using the .NET Compact Framework, you can use
System.Net.HttpWebRequestinstead ofWebClient, which isn’t supported on .NET CF.Since
WebClientis implemented on top ofHttpWebRequest, you can do everything withHttpWebRequestthat you can withWebClient, albeit with more code.For example, to download the contents of a URL into a string, you can use this code: