Hi All,<BR> I want to give restricted document access using ASP and COM.<BR>I have a ActiveX Dll which reads the document from a secured folder. The dll returns the binary file contents to ASP which then does a response.binarywrite to browser. I am doing this based on the microsoft article - http://support.microsoft.com/support/kb/articles/Q193/9/98.ASP?VOTE=2<BR> Everything was fine. I could retrieve pdf,doc,xls etc files correctly until a few days back. Now when the browser gets the document, its corrupted. On saving a doc file to hardisk i noticed that the file size was exactly the same as the correct one on the server (invalid character to byte conversions??) - But it has a lot of unwanted characters.<BR><BR> I thought this maybe due to dll corruption. I replaced the code to use the ADODB.Stream object (based on the article - http://www.4guysfromrolla.com/webtech/083100-1.shtml)<BR> I get the same garbled document. It garbles for .doc and .xls. For pdf it forces a save to disk of the ASP page itself (I have IE 5.5 SP2).<BR> I am stumped with this problem and its very critical that I solve it. Obviously i am out of solutions so I am looking at some useful inputs from the readers of this site. Please mail me at netdost@hotmail.com<BR><BR>I really appreciate the help.