download a file

  • Thread starter Thread starter kalaivanan
  • Start date Start date
Hi Kalaivanan,

That depends on wether you are writing the client or the server software.
For clients, you can use WebClient.DownloadFile, on the server you can use
Response.TransmitFile or Response.Write after specifying the proper header.
 
Hello, kalaivanan!

Give more context to your question, what are these client and server?

If server is a http server then WebClient.DownloadFile(...);
if ftp server then FtpWebRequest/FtpWebResponse
if its a custom server then you can use network sockets to copy data.

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
 
For network share FileStream, for web/ftp use
WebRequestMethods.Ftp.DownloadFile
--
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 

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

Similar Threads

excel report 1
shared assemby 1
passing javascript value to itemtemplate textbox 1
unable to open project file by the web server 1
datagrid 2
dataset 1
object, reference, instance 6
javascript 2

Back
Top