Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.