Hi!<BR><BR>Does anyone know what I´m doing wrong?<BR>Im trying to show an powerpoint file that is stored in an database on a webpage. The code I´m using looks like this:<BR>***************************************** **************<BR>&#060;%<BR>On Error Resume Next<BR><BR>&#039; Connect to database<BR>Set conn = Server.CreateObject("ADODB.Connection") <BR>conn.Open "DSN=GS;UID=odbcgs;PWD=gsgs"<BR><BR>&#039; Clear out the existing HTTP header information Response.Expires = 0 <BR>Response.Buffer = TRUE<BR>Response.Clear<BR><BR>&#039; Get id of file to display<BR>uplid = Request("uploadid")<BR>If uplid = "" Then<BR>uplid = 1<BR>End If<BR><BR>&#039; Retrieve file and related information<BR>sSQL = "SELECT * FROM Sap_doc2 WHERE ID = " & uplid<BR>Set rsBlob = Conn.Execute(sSQL)<BR>uplfilename = rsBlob("Filename") <BR>uplmimetype = rsBlob("uplmimetype")<BR><BR>&#039; Change the HTTP header to reflect the type &#039; of file that is being passed.<BR>Response.ContentType = "application/vnd.ms-powerpoint"<BR><BR>Response.Addheader "Content-Disposition", "inline;filename=" & Filename<BR><BR>Response.BinaryWrite rsBlob("UplFile") <BR>Response.End <BR><BR>conn.Close<BR>Set conn = Nothing<BR>%&#062;<BR>**************************** *****************************<BR><BR>Thankfull for any help!<BR><BR>/2-times