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)

Posted on Jan 3, 2012 8:28 AM

Reply
1 reply

There are no replies.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Response.BinaryWrite not working with Safari in MAC

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.