Thank GOd for your help.<BR><BR>Now that I know what the content type is, I am now getting this error.<BR>"There was an error opening this document. File does not begin with '%PDF-'. <BR><BR>Here's my code:<BR>Dim filename<BR>filename = Request.QueryString("f")<BR>'--- Use the following line to preset the filename in the Save As dialog<BR>'--- box that will appear in the browser.<BR>Response.Addheader "Content-Disposition", "Attachment; filename=" & filename<BR>'--- Set the appropriate ContentType here. Some examples are:<BR>'--- "application/x-msdownload" (automatic SaveAs box for both browsers)<BR>'--- "application/octet-stream"<BR>'--- "application/x-zip-compressed" for *.ZIP files<BR>'--- "image/jpeg"<BR>'--- "image/gif"<BR>'--- "text/plain", etc.<BR>'Response.ContentType = "application/unknown"<BR>Response.ContentType = "application/pdf"<BR> <BR>'--- For the following header is necessary as a workaround for IE 4.01/IIS 4<BR>'--- See Microsoft KB Article Q181228 for some more information.<BR>'---<BR>Response.CacheControl = "public"<BR>Response.Clear<BR>Response.BinaryW rite (filename)<BR>Response.End
.. the contents of the file. It's writing out the filename. Nothing more, nothing less.<BR><BR>You need to actually read the file in and then Response.BinaryWrite that binary of the file out.<BR><BR>Look into using the ADODB.Stream object.