O'Reilly logo

Silverlight 4 Data and Services Cookbook by Kevin Dockx, Gill Cleeren

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Uploading files to a WCF service

While most of the time we'll want to download files such as images from a server, sometimes a scenario may arise where we might need to send files to a server. For example, imagine we are building a Silverlight image editor where the user is editing an image locally. After completion, the user may want to save this image on the server, perhaps in a folder or even in a SharePoint library. In this case, the locally created file (in this case an image) somehow needs to be transmitted to the server.

WCF services can help in implementing this scenario. At its heart, a file is nothing more than binary data that can be sent to a service endpoint. In this recipe, we'll build such a service and a client application that ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required