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. ASP.NET
  4. transferring files

transferring files

Scheduled Pinned Locked Moved ASP.NET
sysadminperformancequestion
3 Posts 3 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.
  • L Offline
    L Offline
    leone
    wrote on last edited by
    #1

    hello friends my asp application facilitates downloading files from one server to many clients computers. but when i tested download speed from a client computer, i realized that it is too slow. But when i use "remote desktop" (i mean connecting to server via remote desktop) downloading is becoming so fast. I am using this code: FileInfo fi = new FileInfo(FileURL); HttpContext.Current.Response.ContentType = "application/vnd.xls"; HttpContext.Current.Response.AddHeader("Content-Disposition", "attachment;filename =" + fi.Name); HttpContext.Current.Response.TransmitFile(FileURL); HttpContext.Current.Response.End(); So i want to ask that what kind of a connection does remote desktop use. And how can i make my downloads faster. thank you

    M M 2 Replies Last reply
    0
    • L leone

      hello friends my asp application facilitates downloading files from one server to many clients computers. but when i tested download speed from a client computer, i realized that it is too slow. But when i use "remote desktop" (i mean connecting to server via remote desktop) downloading is becoming so fast. I am using this code: FileInfo fi = new FileInfo(FileURL); HttpContext.Current.Response.ContentType = "application/vnd.xls"; HttpContext.Current.Response.AddHeader("Content-Disposition", "attachment;filename =" + fi.Name); HttpContext.Current.Response.TransmitFile(FileURL); HttpContext.Current.Response.End(); So i want to ask that what kind of a connection does remote desktop use. And how can i make my downloads faster. thank you

      M Offline
      M Offline
      michaelschmitt
      wrote on last edited by
      #2

      You mean, the download speed of your server was fast (you logged in with remote desktop and downloaded a file to your server), while the download of a client (file from your server) was slow? The reason for that could be a upstream/downstream speed difference of the internet connection of your server. While the first szenario is a downstream szenario, the latter one is upstream (from the server point of view). In general, you have to differ between upstream/downstream speed and client/server connection speed. Your clients will usually have a slower internet connection.

      1 Reply Last reply
      0
      • L leone

        hello friends my asp application facilitates downloading files from one server to many clients computers. but when i tested download speed from a client computer, i realized that it is too slow. But when i use "remote desktop" (i mean connecting to server via remote desktop) downloading is becoming so fast. I am using this code: FileInfo fi = new FileInfo(FileURL); HttpContext.Current.Response.ContentType = "application/vnd.xls"; HttpContext.Current.Response.AddHeader("Content-Disposition", "attachment;filename =" + fi.Name); HttpContext.Current.Response.TransmitFile(FileURL); HttpContext.Current.Response.End(); So i want to ask that what kind of a connection does remote desktop use. And how can i make my downloads faster. thank you

        M Offline
        M Offline
        Michel Godfroid
        wrote on last edited by
        #3

        Where do you store the file when you use remote desktop? If it's in your normal documents or downloads directory, that file never leaves your server, because these directories are also on the server computer. Nothing travels over the wire. Apart from that, remote desktop uses this internally: http://msdn.microsoft.com/en-us/library/aa383546(v=VS.85).aspx[^] Citrix uses something similar, but the interface is a bit more complicated (and you need to get a developer license to get at it).

        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