I am using the following code to hide the download url of files on my website. The code uses Response.Binary write 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.AddHea der("Content-Disposition","a ttachment; filename=""" & strFileSave & """")
Response.Conten tType = "bad/type"
Set Fsys = Server.CreateOb ject("Scripting .FileSystemObje ct")
Set TS = Fsys.GetFile(st rFile).OpenAsTe xtStream(1, -1)
Do While Not (TS.AtEndOfStre am)
Response.Binary Write(TS.Read(1 ))
Loop
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.AddHea der("Content-Disposition","a ttachment; filename=""" & strFileSave & """")
Response.Conten tType = "bad/type"
Set Fsys = Server.CreateOb ject("Scripting .FileSystemObje ct")
Set TS = Fsys.GetFile(st rFile).OpenAsTe xtStream(1, -1)
Do While Not (TS.AtEndOfStre am)
Response.Binary Write(TS.Read(1 ))
Loop
Comment