You need to return a HTML page that then has a request string in an IMG element.
This way you force this to be opened in the browser. Thomas Tomiczek THONA Software & Consulting Ltd. (Microsoft MVP C#/.NET) (CTO PowerNodes Ltd.) > -----Original Message----- > From: Unmoderated discussion of advanced .NET topics. > [mailto:[EMAIL PROTECTED] On Behalf Of > Eddie Jackson > Sent: Mittwoch, 7. Juli 2004 15:46 > To: [EMAIL PROTECTED] > Subject: [ADVANCED-DOTNET] ASP.NET BinaryWrite > > I am trying to use Response.BinaryWrite to open a new window > with a tif file. A multipage tif is built on the fly with a > memoryfile and is in a byte Array. I have tried various > itterations of the code below. It has opened the image/fax > viewer but there is no content. I know the byte array is > populated properly. Please help.... > > Thanks > > 'Response.Buffer = False > 'Response.Charset = "UTF-8" > Response.ContentType = "image/tiff" > 'Response.AddHeader("Content-Type", "image/tif") > 'Response.AddHeader("Content-Disposition", > "inline;filename=image.tiff") > Response.BinaryWrite(br) > Response.End() > > =================================== > This list is hosted by DevelopMentor(r) http://www.develop.com > Some .NET courses you may be interested in: > > NEW! Guerrilla ASP.NET, 17 May 2004, in Los Angeles > http://www.develop.com/courses/gaspdotnetls > > View archives and manage your subscription(s) at > http://discuss.develop.com > =================================== This list is hosted by DevelopMentorŪ http://www.develop.com Some .NET courses you may be interested in: NEW! Guerrilla ASP.NET, 17 May 2004, in Los Angeles http://www.develop.com/courses/gaspdotnetls View archives and manage your subscription(s) at http://discuss.develop.com