Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a jsp web application running on Ubuntu apache server. I take screen shot of different picture and save those in tmp folder of the server. Now I need to show this picture in my web application. How can I show picture in my application from tmp folder?

when I set image source src="/tmp/zzz.png" is not working.

share|improve this question
You need to make /tmp accessible to apache. Is saving the screenshot somewhere else an option? – terdon Jul 13 '13 at 14:49
Is there any way to move this picture from tmp folder to my web application folder programmtically? – tetrapack Jul 13 '13 at 15:44
Can't you chose where the screenshot is saved? – terdon Jul 13 '13 at 19:31
yes , I can choose the location like I could save my location like /var/lib/tomcat6/data/images folder but when I save /var/lib/tomcat6/data/images in this location it did not saved. I dont know the problem but I can save in /tmp/ folder. – tetrapack Jul 13 '13 at 22:44

I'm not sure if its the correct way of doing this but it works.

You simply make a symbolic link

ln -S /tmp /your/project/directory

for the /tmp directory inside your project and you can use it like a normal image inside a directory.

Hope this helps

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.