most reliable way is something like this;
Set oStream = Server.CreateObject("ADODB.Stream")
oStream.Open
oStream.Type = 1 ' Binary
oStream.LoadFromFile strPath ' strPath is path to file
binaryData = oStream.Read ' file is not in var
Set oStream = Nothing
Response.AddHeader "content-disposition", _
"attachment; filename=""" & strFileName & """"
Response.BinaryWrite binaryData
Richard wrote:
Hi Gurus,
I have a file with extention abc.
I want to create a html page. When user click a link it should open that
file, but IE does not recognise that file(.abc).
What I have to do so that when user click's it it should download it as EXE
or other files.
Please help.
Richard.