Can anyone show me some example code of uploading a file using a web service?

For the moment it is a text file.