You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

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.

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.