Upload from a desktop app.

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
 
P

Peter Bromberg [C# MVP]

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.
 
I

Ignacio Machin ( .NET/ C# MVP )

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.
 
A

Arne Vajhøj

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top