I have tried this and I still do not get the window to open. Here is the code that I am using... Do you see anything that I am doing wrong?????
Dim br As Byte() = ig.fnBuildImageByteArray Response.Buffer = False Response.ContentType = "image/tiff" Response.AddHeader("Content-Type", "image/tiff") Response.AddHeader("Content-Disposition", "attachmentfilename=image.tiff") Response.BinaryWrite(br) Response.End() -----Original Message----- From: Stephen Dunn [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 07, 2004 8:59 AM To: [EMAIL PROTECTED] Subject: Re: [ADVANCED-DOTNET] ASP.NET BinaryWrite When you say 'opening new window', I assume you mean a separate window with the associated application for .tiff files? If so, then your line: Response.AddHeader("Content-Disposition", "inline;filename=image.tiff") Should be changed to: Response.AddHeader("Content-Disposition", "attachment; filename=image.tiff") -----Original Message----- From: Unmoderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Eddie Jackson Sent: 07 July 2004 14: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 email and any attachments are confidential. They may contain privileged information and are intended for the named addressee(s) only. They must not be distributed without Perfect Information's consent. If you are not the intended recipient, please notify us immediately and do not disclose, distribute, or retain this email or any part of it. Unless expressly stated, opinions in this email are those of the individual sender, and not of Perfect Information. We believe but do not warrant that this e-mail and any attachments are virus free. You must therefore take full responsibility for virus checking. Perfect Information reserves the right to monitor all email communications through their networks. =================================== 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 =================================== 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