Ayush
Ayush

Reputation: 42450

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.

Upvotes: 0

Views: 777

Answers (1)

Shekhar_Pro
Shekhar_Pro

Reputation: 18430

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.

Upvotes: 1

Related Questions