Solved

Where to save temporary internet files

Posted on 2009-05-13
3
304 Views
Last Modified: 2013-12-25
I have a web site using javascript, perl, and php. I generate a graph that uses flash technology. I want to put this graph into a pdf file with other text and allow the end user to print it out. I can save the generated flash graph as a jpeg file. I can pull a graphic into the pdf file. What I don't know is where to save the graphic file. I would like to save the file on the client side. That way I don't need to worry about unique naming conventions and keeping track of numerous files. Client side I can just call the graphic the same thing each time and reference it by just one name for everyone. Is there a simple way to save this for all operating systems? I am thinking maybe the temporary internet file directory - if I am allowed to do such a thing - but I don't know how to do this. Or maybe there id a better solution for doing this?
0
Comment
Question by:pconder
  • 2
3 Comments
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 24382679
You cannot include a file from the file system just like that. It is not allowed from a security point of view
0
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 500 total points
ID: 24588344
So the answer is correct: You can't do that

Actually you might be able to save an image < 4k b64 encoded in a cookie in firefox and use the data parameter in the image tag
It will not work in any browser that does not support the data parameter.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
This video teaches users how to migrate an existing Wordpress website to a new domain.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question