Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7557839
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T12:14:11+00:00 2026-05-30T12:14:11+00:00

I want to download a file from another server with save as dialog box…

  • 0

I want to download a file from another server with save as dialog box… I tried 1 example to download file from our server which worked but i don’t know how to work for files which are hosted on another server.

If I try to download then i am getting It is not valid virtual path

Response.WriteFile(Convert.ToString(http://abc.com/sbe/test.pdf));

What should i do to download files from another server.

Regards,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T12:14:13+00:00Added an answer on May 30, 2026 at 12:14 pm

    I got this code from a guy in asp.net forums.. His code help me to resolve my issue for a complete discussion check this link out : http://forums.asp.net/p/1772874/4847084.aspx/1?p=True&t=634655765939994111

    Below is the code

    WebClient client = new WebClient();
    string url = @"http://www.agiledeveloper.com/articles/BackgroundWorker.pdf";
    byte[] data = client.DownloadData(new Uri(url));
    
    Response.Clear();
    Response.ContentType = "application/pdf";
    Response.AppendHeader("Content-Disposition", String.Format("attachment; filename={0}", "aspnet.pdf"));
    Response.OutputStream.Write(data, 0, data.Length);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to download a PDF file from a SQL Server database which is
i want to download a file from a remote server. i already tried fopen
I want to download a single frame of a video file from a server
I have a large file I want to download from a server I have
I want to download a huge file from an ftp server in chunks of
I want to develope upload and download file from server. Upload.html <form action=/UploadFile/UploadFile method=POST
I want to download a wav file from a web service, cache it on
I want to download an mp3 File from a Link on the Phone(Isolated Storage)
I want to download a .zip file which is available at URL http://www.nseindia.com/content/equities/cmbhav.htm by
I want to download and save pdf file to internal storage. Here is code

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.