Response.BinaryWrite not working with Safari in MAC
I'm using ASP.NET to stream a PDF document to Safari (version 5.0.3), the streaming is working properly in Safari in Windows/iPad but it doesn't in MAC. Using the Safari Developer Tool, the following error is logged in Console error windows, "Failed to load resource: Plug-in handled load" So, I tried disabling the PDF installed plugin and it works. So I'm asking how to figure out what error is there and related to PDF plugin? or Does Safari in MAC requires specific stuff to make this work?
I'm using the following code for the file streaming
Response.ClearContent();
Response.ClearHeaders();
Response.AddHeader("Content-Length", fileBytes.Length.ToString());
Response.ContentType = "application/pdf";
Response.BinaryWrite(fileBytes);
Response.Flush();
System.Web.HttpContext.Current.ApplicationInstance.CompleteRequest();
Mac OS X (10.6.5)