开发者

Sending/uploading file to another computer/server

I am working on a Silverlight application to familiarize myself with it.

The application I intend to build has two components: A silverlight web app that I will host (on my home desktop, for now), and a C# app that will run client-side.

The Silverlight app needs to read a file that resides on the client side.

The C# app (which will probably run as a service) needs to send a .txt开发者_运维百科 file (no more than 10kb) to my server every 5-10min or so (will be user configurable).

What is the best way to send the file? (byte stream, or something else?)

How do I configure my server to receive this file? I assume it will involve some IIS configuration, and I could run a C# app that receives the file and saves it in a directory from where the Silverlight app can read it.


You can send a POST request to the server with byte stream and retrieve it on the server.Then process it and show it on your Silverlight app as required.

Also since your silverlight app can directly take file from user and process it in the browser itself if user interaction is required.

Remember Silverlight is a Client Side Technology not Server Side.If you need normal webservice type design where you take file and update some information in database, etc then you need a simple ASP.Net web app not Silverlight.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜