Download file from web server to client's computer

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • malkin
    New Member
    • Apr 2009
    • 4

    Download file from web server to client's computer

    Hi there,

    I am developing a web application which requires a download function to download files selected on the web page into client's computer. I have tried to build a C# DLL, load to client's machine and retrieve the file (data) from server and save it in client's PC. That's doesn't work. During this test, I got a Unauthorized Access Exception when I tried to use the StreamWriter to write the data to "d:\tmp\" (for instance).

    It sounds like a trivial task but I can't find any hints or white papers on how to do this the right way.

    Furthermore, providing the links to download one by one, zip them and download the zip .. I have considered these options but it doesn't fit the requirement.

    Any pointers or suggestions are highly welcome. Thanks in advance.
  • madankarmukta
    Contributor
    • Apr 2008
    • 308

    #2
    Originally posted by malkin
    Hi there,

    I am developing a web application which requires a download function to download files selected on the web page into client's computer. I have tried to build a C# DLL, load to client's machine and retrieve the file (data) from server and save it in client's PC. That's doesn't work. During this test, I got a Unauthorized Access Exception when I tried to use the StreamWriter to write the data to "d:\tmp\" (for instance).

    It sounds like a trivial task but I can't find any hints or white papers on how to do this the right way.

    Furthermore, providing the links to download one by one, zip them and download the zip .. I have considered these options but it doesn't fit the requirement.

    Any pointers or suggestions are highly welcome. Thanks in advance.
    Hi,

    Could you please try the test once by sharing that folder where you r downloding the file..?

    Could you please post the code for downloading so that i can give a slight indication for where the problem lie..?

    Thanks!

    Comment

    • PRR
      Recognized Expert Contributor
      • Dec 2007
      • 750

      #3
      check this thread.. might be helpful....

      Comment

      Working...