Upload from a desktop app.

  • Thread starter Thread starter AMP
  • Start date Start date
A

AMP

Hello, Does anyone know of any books, websites that show how to upload
data to a webserver from a desktop application using c#?
Thanks
Mike
 
You can use the simplified WebClient class, which has several methods to post
data, including binary file data. Read the file into a byte array, use the
proper method, and as long as the receiving page is expecting an upload,
that's all there is to it.
 
Hello, Does anyone know of any books, websites that show how to upload
data to a webserver from a desktop application using c#?
Thanks
Mike

Hi,

Depends,
What is in the other side? a Web service, an aspx page that upload a
file?
In case it's a page, do you control it?
If it's a page you can use the WebRequest to do a request to upload
the file.
 
AMP said:
Hello, Does anyone know of any books, websites that show how to upload
data to a webserver from a desktop application using c#?

Try search for WebClient or (Http)WebRequest classes. There
are plenty of examples.

I can dig up a few if you need it.

Arne
 
Back
Top