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

  • SEARCH
  • Home
  • 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 949449
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T23:24:15+00:00 2026-05-15T23:24:15+00:00

I am not sure if this is possible… Right now I create various .RDP

  • 0

I am not sure if this is possible… Right now I create various .RDP files that my users download directly off the server, with code such as this:

        System.IO.FileInfo fileInfo = new System.IO.FileInfo(filePath);
        Response.Clear();
        Response.AddHeader("Content-Disposition", "attachment; filename=" + fileInfo.Name);
        Response.Cache.SetCacheability(System.Web.HttpCacheability.NoCache);
        Response.ContentType = "Content-Type=application/x-rdp rdp;charset=ISO-8859-1";
        Response.AddHeader("Content-Length", fileInfo.Length.ToString());
        Response.WriteFile(fileInfo.FullName);
        Response.End();

So a user would click a link and get a file link ‘~/Download/RemoteServer1234.RDP’.

I don’t want these files on my server for various reasons (maintenance and security come to mind). Is there a way to make ‘fake files’ and give a pointer to the client to just download data that resides in memory? If so, then how does the server ultimately know when to remove any assigned memory?

  • 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-15T23:24:15+00:00Added an answer on May 15, 2026 at 11:24 pm

    Just use Response.Write() with a StringBuilder (via its ToString() method) containing the RDP file contents (which is an extremely simple format). Of course you can pass an arbitrary string as the filename in the Content-disposition header.

    Here’s a description of the RDP format (which you apparently already write to a file):
    Remote Desktop File Format

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Not sure this is possible, but looking to write a script that would return
I am not sure if this is even possible, with that said... below is
I am not sure if this possible or if this is the right place
I am pretty sure this is possible just not sure what is the term
Not sure if this is possible or if I'm expressing correctly what I'm looking
I'm not quite sure if this is possible, or falls into the category of
I'm not entirely sure if this is possible, but does anyone know how, or
I'm not sure if this is even possible but here goes: Currently I have
I'm not sure this is even possible, but here goes: I have a class
I am not sure if this is possible in mySQL. Here are my tables:-

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.