Well thanks for your response. I used the following code to retrieve the binary data from the database but then when i try to display it, it gives me the following errror:
<font face="Arial" size=2>
<p>Response object</font> <font face="Arial" size=2>error 'ASP 0106 : 80020005'</font>
<p>
<font face="Arial" size=2>Type Mismatch</font>
<p>
<font face="Arial" size=2>/Authenticated/Profile/test.asp</font><font face="Arial" size=2>, line 34</font>
<p>
<font face="Arial" size=2>An unhandled data type was encountered.
</font>
Not sure what this means.
I am able to retrieve the binary data from the database but cannot display it. I have an excel file but would be the same for word document.
And ideas??
My Code is as follows:
Dim rs
Dim ConstConnectString
Dim strSQL
Dim intAttachmentID
intAttachmentID = Request.QueryString("AttachmentID"
ConstConnectString = "Provider=SQLOLEDB;User ID=EK_Admin;Initial Catalog=EK;Data Source=(local);Connect Timeout=60"
Set rs = Server.CreateObject("ADODB.Recordset"
strSQL = "SELECT [Attachment] FROM Attachment" & _
" WHERE AttachmentID = " & intAttachmentID & ""
rs.Open strSQL, ConstConnectString, 2, 4
If Not rs.EOF then
Response.ContentType = "application/x-msexcel"
Response.BinaryWrite rs("Attachment"

End If
rs.Close
Set rs = Nothing