Hi Douglas,
If you do not want to make your ASP.NET application access the actual file
directly, you expose those PDF file stream through an intermediate service.
You this service can access the original raw PDF file or data storage and
pass it to your ASP.NET web application through some distrubute service
communciation( such as webservice, remoting .....).
In your ASP.NET page (or custom http handler), you simply communicate to
the intermediate service to get the binary content of the file stream and
write it out to the response stream. e.g.
============
private void Page_Load(object sender, System.EventArgs e)
{
Response.ClearContent();
Response.ClearHeaders();
Response.ContentType = "Application/pdf";
byte[] filebytes = //get binary content through
intermediate component/service
Response.BinaryWrite(filebytes);
Response.End();
}
=====================
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.