![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | file size limit in response.binarywrite I am using the following code to hide the download url of files on my website. The code uses Response.Binarywrite to send file to the client. Kindly indicate the maximum size of the file that can be downloaded using this method. I am hosting this site on a public server, so I will not be able to change anything on the webserver. Kindly indicate what can be done to ensure that the above method remains valid for any file size download. call Response.AddHeader("Content-Disposition","attachment; filename=""" & strFileSave & """") Response.ContentType = "bad/type" Set Fsys = Server.CreateObject("Scripting.FileSystemObject") Set TS = Fsys.GetFile(strFile).OpenAsTextStream(1, -1) Do While Not (TS.AtEndOfStream) Response.BinaryWrite(TS.Read(1)) Loop |
My System Specs![]() |
| | #2 (permalink) |
| | Re: file size limit in response.binarywrite Answered in the ASP group. Please don't multipost. Also the general from is to use plain text format in these NGs not HTML. -- Anthony Jones - MVP ASP/ASP.NET "S N" <uandme72@xxxxxx> wrote in message news:u3UFncOEJHA.612@xxxxxx I am using the following code to hide the download url of files on my website. The code uses Response.Binarywrite to send file to the client. Kindly indicate the maximum size of the file that can be downloaded using this method. I am hosting this site on a public server, so I will not be able to change anything on the webserver. Kindly indicate what can be done to ensure that the above method remains valid for any file size download. call Response.AddHeader("Content-Disposition","attachment; filename=""" & strFileSave & """") Response.ContentType = "bad/type" Set Fsys = Server.CreateObject("Scripting.FileSystemObject") Set TS = Fsys.GetFile(strFile).OpenAsTextStream(1, -1) Do While Not (TS.AtEndOfStream) Response.BinaryWrite(TS.Read(1)) Loop |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Limit download size | Live Mail | |||
| Inbox Size Limit | Vista mail | |||
| File names size limit? | Vista General | |||
| File name size limit? | Vista file management | |||