Hello,
I am looking for the best way to securely stream a PDF to the browser (IE).
The PDF would be inside our firewall, so presumably there would have to be
some sort of middle-tier app inside the firewall that would receive a
request from a browser and then get the PDF and stream it outside the
firewall to the browser.
Does that make sense?
Thanks,
Douglas 7 9908
You could create a special page (or HTTPHandler) to dish out the files.
It would probably use the Response.WriteF ile method to retrieve the
specified file and output it.
Here's more info: http://msdn2.microsoft.com/en-us/lib...30(vs.71).aspx http://SteveOrr.net/articles/EasyUploads.aspx
--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider http://SteveOrr.net
"Douglas McCormick" <dm********@nos pam.nospamwrote in message
news:%2******** ********@TK2MSF TNGP06.phx.gbl. ..
Hello,
I am looking for the best way to securely stream a PDF to the browser
(IE). The PDF would be inside our firewall, so presumably there would have
to be some sort of middle-tier app inside the firewall that would receive
a request from a browser and then get the PDF and stream it outside the
firewall to the browser.
Does that make sense?
Thanks,
Douglas
Steve,
Thanks for the reply. However, that sounds like the browser would need
access to the file structure. In my case, the actual PDF is inside the
firewall, so the browser does not have access. I also cannot copy the PDF
outside of the firewall and put on the web server because it is not secure.
Someone could hack the web server and get access to the PDF. It has to be
secure.
Thanks,
Douglas
"Steve C. Orr [MCSD, MVP, CSM, ASP Insider]" <St***@Orr.netw rote in
message news:66******** *************** ***********@mic rosoft.com...
You could create a special page (or HTTPHandler) to dish out the files.
It would probably use the Response.WriteF ile method to retrieve the
specified file and output it.
Here's more info: http://msdn2.microsoft.com/en-us/lib...30(vs.71).aspx http://SteveOrr.net/articles/EasyUploads.aspx
--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider http://SteveOrr.net
"Douglas McCormick" <dm********@nos pam.nospamwrote in message
news:%2******** ********@TK2MSF TNGP06.phx.gbl. ..
>Hello,
I am looking for the best way to securely stream a PDF to the browser (IE). The PDF would be inside our firewall, so presumably there would have to be some sort of middle-tier app inside the firewall that would receive a request from a browser and then get the PDF and stream it outside the firewall to the browser.
Does that make sense?
Thanks, Douglas
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(objec t sender, System.EventArg s e)
{
Response.ClearC ontent();
Response.ClearH eaders();
Response.Conten tType = "Applicatio n/pdf";
byte[] filebytes = //get binary content through
intermediate component/service
Response.Binary Write(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/subscripti...ult.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/subscripti...t/default.aspx.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.
Steve,
>
Thanks for the reply. However, that sounds like the browser would need
access to the file structure. In my case, the actual PDF is inside the
firewall, so the browser does not have access. I also cannot copy the
PDF outside of the firewall and put on the web server because it is
not secure. Someone could hack the web server and get access to the
PDF. It has to be secure.
The browser does not need to access that PDF file directly. Response.WriteF ile
retrieves the file server side and send the bytes of that file to the browser.
So it's your webserver that is doing the reading.
Now you still need to figure out how that webserver can get access to
that pdf file :-(.
Hans Kesting
Thanks,
Douglas
"Steve C. Orr [MCSD, MVP, CSM, ASP Insider]" <St***@Orr.netw rote in
message news:66******** *************** ***********@mic rosoft.com...
>You could create a special page (or HTTPHandler) to dish out the files. It would probably use the Response.WriteF ile method to retrieve the specified file and output it.
Here's more info: http://msdn2.microsoft.com/en-us/lib...30(vs.71).aspx http://SteveOrr.net/articles/EasyUploads.aspx
-- I hope this helps, Steve C. Orr, MCSD, MVP, CSM, ASPInsider http://SteveOrr.net "Douglas McCormick" <dm********@nos pam.nospamwrote in message news:%2******* *********@TK2MS FTNGP06.phx.gbl ...
>>Hello,
I am looking for the best way to securely stream a PDF to the browser (IE). The PDF would be inside our firewall, so presumably there would have to be some sort of middle-tier app inside the firewall that would receive a request from a browser and then get the PDF and stream it outside the firewall to the browser.
Does that make sense?
Thanks, Douglas
I will look into that. Thanks!
"Steven Cheng[MSFT]" <st*****@online .microsoft.comw rote in message
news:zI******** ******@TK2MSFTN GHUB02.phx.gbl. ..
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(objec t sender, System.EventArg s e)
{
Response.ClearC ontent();
Response.ClearH eaders();
Response.Conten tType = "Applicatio n/pdf";
byte[] filebytes = //get binary content through
intermediate component/service
Response.Binary Write(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/subscripti...ult.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/subscripti...t/default.aspx.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no
rights.
You can also look for some reference and information about programmaticall y
generate binary output in web page over the internet. If there is anything
else you wonder, please feel free to post here.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
They would not need access to the file structure - the file would be
streamed to the browser through the firewall via FTP.
Take a look at the second link that Steve replied - the exact clode that you
need is included there in the "Download" section.
"Douglas McCormick" <dm********@nos pam.nospamwrote in message
news:eA******** ******@TK2MSFTN GP06.phx.gbl...
Steve,
Thanks for the reply. However, that sounds like the browser would need
access to the file structure. In my case, the actual PDF is inside the
firewall, so the browser does not have access. I also cannot copy the PDF
outside of the firewall and put on the web server because it is not
secure. Someone could hack the web server and get access to the PDF. It
has to be secure.
Thanks,
Douglas
"Steve C. Orr [MCSD, MVP, CSM, ASP Insider]" <St***@Orr.netw rote in
message news:66******** *************** ***********@mic rosoft.com...
>You could create a special page (or HTTPHandler) to dish out the files. It would probably use the Response.WriteF ile method to retrieve the specified file and output it.
Here's more info: http://msdn2.microsoft.com/en-us/lib...30(vs.71).aspx http://SteveOrr.net/articles/EasyUploads.aspx
-- I hope this helps, Steve C. Orr, MCSD, MVP, CSM, ASPInsider http://SteveOrr.net
"Douglas McCormick" <dm********@nos pam.nospamwrote in message news:%2******* *********@TK2MS FTNGP06.phx.gbl ...
>>Hello,
I am looking for the best way to securely stream a PDF to the browser (IE). The PDF would be inside our firewall, so presumably there would have to be some sort of middle-tier app inside the firewall that would receive a request from a browser and then get the PDF and stream it outside the firewall to the browser.
Does that make sense?
Thanks, Douglas
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Markus Ernst |
last post by:
Hi
I know this question is rather HTTP related than PHP, but I did not find an
HTTP group on my news server.
I deliver some files with the following PHP syntax:
header('Content-Description: File Transfer');
header('Content-Type: '.$mimetype);
header('Content-Length: '.filesize($file));
|
by: googlegroups |
last post by:
I am playing with the XMLHTTPRequest method to perform client/server
transactions. I have it set up right now so that when readyState is 4,
it takes the XML and processes it. This works great until there is alot
of data. In that case, the user will have to wait for the data to come
back which may take a minute or so.
I don't want the user to have to wait. Is it possible for javascript to
periodically (while still receiving more data)...
|
by: Rob |
last post by:
I have an ASP.Net web app that generates a Crystal Report in PDF format.
Since there is sensitive data within the reports, the pdfs need to be
streamed to the browser then deleted immediately. The report gets kick off
by a Java application redirecting the URL to the ASP.Net app on the IIS
Server with all report selection criteria appended to the querystring. The
Crystal Report is rendered in a new window.
In the Page_Load() event, I...
|
by: John |
last post by:
Hi all,
I have an (well, what I think to be, at least) interesting question:
Is it possible to stream data down to the client and, after a certain amount
of data has been streamed, allow the client to begin interacting with that
data whilst still streaming data down?
Also, if it is possible, how would one go about coding this? Would some sort
of predfined bit of streaming be finished and notify the client (i.e. some
form of Javascript...
|
by: A.M-SG |
last post by:
Hi,
I have a ASP.NET aspx file that needs to pass large images from a network
storage to client browser. The requirement is that users cannot have access
to the network share. The aspx file must be the only method that users
receive image files.
| |
by: |
last post by:
Hi all, is there a better way to stream binary data stored in a table in sql
2005 to a browser in .net 2.0? Or is the code same as in .net 1.1? We
noticed that in certain heavy load scenarios, every now and then the client
would timeout and have to re-initiate the request...
TIA!
|
by: DB |
last post by:
Hi All,
I’m trying to stream a PDF with .NET 2.0 in a c# web app. However, it does
not actually show the PDF (using adobe acrobat).
The Situation:
Click on a Button, Opens a new Window, which generates a PDF, then streams
it out to the client. (So the can get the window of acrobate, isnide of IE).
|
by: Gary Brown |
last post by:
Hi,
I need a web browser capable of handling video streams and that will
stay in front of the Z order. There are a number of video streaming
sources I watch that launch a browser window containing the video
from another browser page. I am almost always working on something
else while following the video. Consequently the video disappears behind
the application window I'm using. I've tried staggering my windows to
avoid this but even...
|
by: SPG |
last post by:
Hi,
Two questions for you all..
Firstly, is there a way of streaming video using PHP? At the moment I just
have a link to a video file and the whole thing downloads before playing
which is a bit of a chore as the video file is pretty huge.
Secondly, I want to restrict access to the video using a password. Can
anyone think of a nice way of doing this? I thought about having the video
|
by: Brad |
last post by:
I have an aspx page that is sending pdf files to client browsers: it uses a filestream to read the pdf file and
response.binarywrite to send content to the browser. This has worked great for years in IE, Firefox and Opera on
windows, and it works on a Mac with Firefox and Opera. But this fails in Safari with the generic message "A network
error occurred while accessing this document".
Here is a link to try out ...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |