bnhcomputing
IS-IT--Management
<%@ Language=VBScript %>
<%
Response.Buffer=true
Response.clear
set st = server.CreateObject (adodb.strem")
Response.ContentType = "application/unknown"
Response.Addheader "ContentType", "application/unknown"
Response.Addheader "Content-Disposition", "inline; filename=test.doc"
st.open
st.Type=1
st.LoadFromFile "test.doc"
Response.BinaryWrite st.read
st.close
Response.End
%>
The source file is a good doc file. The file I get if I select save is twice(2) as big, and full of junk.
I used unknown application because I need it generic enought to work with any/all filetypes.
Any ideas?
Thanks in advance
-----
bnhcomputing
<%
Response.Buffer=true
Response.clear
set st = server.CreateObject (adodb.strem")
Response.ContentType = "application/unknown"
Response.Addheader "ContentType", "application/unknown"
Response.Addheader "Content-Disposition", "inline; filename=test.doc"
st.open
st.Type=1
st.LoadFromFile "test.doc"
Response.BinaryWrite st.read
st.close
Response.End
%>
The source file is a good doc file. The file I get if I select save is twice(2) as big, and full of junk.
I used unknown application because I need it generic enought to work with any/all filetypes.
Any ideas?
Thanks in advance
-----
bnhcomputing