web

web

  • NA
  • 6
  • 0

Upload a file to server

Dec 15 2006 3:51 PM
Hi, I have a windows form and I want to upload a file to the server. I'm familiar with serializing and writing the file to the WebRequest's RequestStream, but I'm using a web service and want to add parameters to it i.e. create the WebRequest and add the file (a serialized form of the file as it could be any filetype) and add some additional parameters like senders name, profession and stuff... I know I could directly reference the webservice and call it as a method, but I want to avoid doing that. Really appreciate all the help! Thanks,