a little hard to describe here. but I assume that you will get FileInfo from the file. for a silver light application you need to add two reference dlls of the client object model.
Microsoft.SharePoint.Client.Silverlight.dll. Microsoft.SharePoint.Client.Silverlight.Runtime.dll.
you can find the above dll from the directory path C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\ClientBin .
private ClientContext context; private Web web; private void UploadFile(FileInfo fileToUpload, string libraryTitle, string subfolderPath, bool fileOverwrite) { try {
source share