file uploading in windows application in .net

  • Thread starter Thread starter archana
  • Start date Start date
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.
 
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 ;-)
 
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?
 
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.
 
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,
 
Back
Top