file uploading in windows application in .net

A

archana

Hi all,

Can any one tell me how to upload file in windows application developed
in C#.net.

Or can i use method webclient.uploadfile in windows application.

Please help me asap.

thanks in advance.
 
J

Joerg Jooss

Thus wrote archana,
Hi all,

Can any one tell me how to upload file in windows application
developed in C#.net.

Or can i use method webclient.uploadfile in windows application.

Why not? Go for it ;-)
 
J

JustinC

Can you elaborate a little more on what you mean by "upload". Are you
uploading the file to a webservice or just trying to load an image into
an application?
 
A

archana

Hi,

I will elaborate this little more.

I have one web service on some different server which i am accessing
through windows application.

That web service is taking file from folder which is there in bin
folder of that web service.

So what i want is to provide facility to user through windows
application to upload file.

Can i do this with webclient.uploadfile. And what will be the maximum
size of file i can upload by using this.

If you can shed some light on it, then it will be really really very
useful for me.

thanks in advance.
 
J

Joerg Jooss

Thus wrote archana,
Hi,

I will elaborate this little more.

I have one web service on some different server which i am accessing
through windows application.

That web service is taking file from folder which is there in bin
folder of that web service.

So what i want is to provide facility to user through windows
application to upload file.

Can i do this with webclient.uploadfile. And what will be the maximum
size of file i can upload by using this.

If you can shed some light on it, then it will be really really very
useful for me.

As I said before, you can do that with WebClient. Given the fact that you're
dealing with a Web Service, you're likely better off just working with a
Web Reference, so you don't have to implement all that nasty SOAP plumbing.

Cheers,
 

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