We have an application that allows users to insert documents via linking or embedding. I am attempting to create a webpage that will allow other users to download/view these documents. I am able to get this working for the linked documents but not for all embedded documents. I am only able to view the following types:
Microsoft Word (.doc)
Microsoft Excel (.xls)
Microsoft PowerPoint (.ppt)
Adobe Acrobat (.pdf)
Text (.txt)
Rich Text (.rtf)
JPEG Images (.jpg)
GIF Images (.gif)
TIF Imaged (.tif)
Hypertext Documents (.htm)
I need to be able to download any type of document they choose to embed. Below is my code:
'Connection.asp
<%
Dim conn
set conn=Server.CreateObject("ADODB.Connection")
conn.open "DSN=DEMO6","SA","SA"
%>
'embedfile.asp
<!--#INCLUDE FILE="../Connection/CONNECTION.ASP"-->
<%
Response.Expires = 0
Response.Buffer = TRUE
Response.Clear
Response.ContentType = "application/octet-stream"
Set rs = conn.Execute("SELECT EMBED_OBJECT FROM LINK_EMBED WHERE LINK_EMBED_SYSID='0000025'")
Response.BinaryWrite rs("EMBED_OBJECT")
Response.End
%>
Microsoft Word (.doc)
Microsoft Excel (.xls)
Microsoft PowerPoint (.ppt)
Adobe Acrobat (.pdf)
Text (.txt)
Rich Text (.rtf)
JPEG Images (.jpg)
GIF Images (.gif)
TIF Imaged (.tif)
Hypertext Documents (.htm)
I need to be able to download any type of document they choose to embed. Below is my code:
'Connection.asp
<%
Dim conn
set conn=Server.CreateObject("ADODB.Connection")
conn.open "DSN=DEMO6","SA","SA"
%>
'embedfile.asp
<!--#INCLUDE FILE="../Connection/CONNECTION.ASP"-->
<%
Response.Expires = 0
Response.Buffer = TRUE
Response.Clear
Response.ContentType = "application/octet-stream"
Set rs = conn.Execute("SELECT EMBED_OBJECT FROM LINK_EMBED WHERE LINK_EMBED_SYSID='0000025'")
Response.BinaryWrite rs("EMBED_OBJECT")
Response.End
%>