transferring files
-
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
-
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
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.
-
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
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).