I have a web service that goes out to Cognos and returns me a byte array of data. What I would like is to have this byte array rendered into a popup window. Currently, the app uses the web service, gets back a byte array and we do this with the following:
byte[] results = new byte[] { };
// web service call returns results for a pdf file
Response.Clear();
Response.AddHeader("content-disposition", String.Format("attachment; filename={0}{1}", txtFileId.Text,fileExt));
Response.BinaryWrite(results);
Response.Flush();
Response.End();
This brings up the file open/save dialog. The user would like it to open in some new popup window. Any ideas on how to accomplish this? Thanks.