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 ...
Get Silverlight 4 Data and Services Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.