Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. certificate string as file on client?

certificate string as file on client?

Scheduled Pinned Locked Moved Web Development
comsysadmincryptographyperformancehelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    Henrik Sternberg
    wrote on last edited by
    #1

    Hi, We have the following problem. On the server, we have a large string. This string, should be downloaded by the user, as a seperate file. For performance reasons, we can't create a file on the server, containing the string, that the user could download. The string has to be sent to the client and from there be saved as a file. Can anyone give a hint on an elegant solution to this problem? Cheers, henrik Henrik Sternberg, Cambridge Technolgy Partners, Germany www.ctp.com/ce henrik.sternberg@ctp.com

    D 1 Reply Last reply
    0
    • H Henrik Sternberg

      Hi, We have the following problem. On the server, we have a large string. This string, should be downloaded by the user, as a seperate file. For performance reasons, we can't create a file on the server, containing the string, that the user could download. The string has to be sent to the client and from there be saved as a file. Can anyone give a hint on an elegant solution to this problem? Cheers, henrik Henrik Sternberg, Cambridge Technolgy Partners, Germany www.ctp.com/ce henrik.sternberg@ctp.com

      D Offline
      D Offline
      Daniel Turini
      wrote on last edited by
      #2

      Henrik Sternberg wrote: Can anyone give a hint on an elegant solution to this problem? Yes: Create an ASP page with this code:

      Response.Expires = -1
      Response.ContentType = "aplication/plain"
      Response.AddHeader "content-disposition", "attachment; filename=yourfile.txt"

      Response.Write yourlongstring

      And IE will start the download process with yourfile.txt as the default filename.


      It's not the fall that kills you: it's the sudden stop - Down by Law, Jim Jamursch (1986)

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups