Then the PDF files would be stored in the private area of the web-app (under 
WEB-INF) , so they can't be accessed directly.

There are probably variants of this, but I think you get the idea.

-----Message d'origine-----
De : Maurice Amsellem [mailto:[email protected]] 
Envoyé : samedi 5 avril 2014 00:04
À : [email protected]
Objet : RE: access PDF doc from inside Flex app but not outside?

If your app is contained in a JEE Web App, you could probably write a servlet 
to download the PDF securely, using a "security token" or something.
The Flex App would simply request the servlet through its url to get the PDF, 
and pass it the security token.  

Makes sense ?

Maurice 

-----Message d'origine-----
De : [email protected] [mailto:[email protected]] Envoyé : vendredi 4 
avril 2014 23:45 À : apache flex users Objet : access PDF doc from inside Flex 
app but not outside?

I have a desktop Flex app that users register and login. I need to provide 
these users access to technical documents in PDF format. However, I don't want 
to put these docs in my server's public_html directory because then any visitor 
can potentially view them. Is there any way for the Flex app to open these PDF 
files in a new browser window, while preventing their access by website 
visitors? That is, the files can only be opened when logged into the app, and 
not by copying and pasting a link in an email that goes to someone else for 
them to open in any browser. 

I understand the user can simply download the PDF file and e-mail it if he/she 
really wants to (I'm just trying to make it a little more difficult). 

I was thinking maybe there was a way to place the PDF files somewhere in the 
Java application server since only Flex has access there (a firewall blocks 
website visitors). Thought maybe someone ran into this before and could help me 
see what's possible. 

Reply via email to