forcing asp download problems with large files
I use this code to force the download files:
file = Request.QueryString("file")
ContentType = "application/x-msdownload"
Response.Buffer = True
Const adTypeBinary = 1
Set objStream = Server.CreateObject("ADODB.Stream")
objStream.Type = adTypeBinary
ContentType = "application/octet-stream"
Response.AddHeader "Content-Disposition", "attachment; filename=" & file
Response.Charset = "UTF-8"
Response.ContentType = ContentType
Set objStream = Nothing
it works very well !
But I have a problem with files size large ...
there is anyone to help me?