0

I have a Java Web Application on JBoss, I need to access images in a directory on the server, but cannot be accessed by URL. My question, is it possible that the web application can load these images? How I can do this?

Thank you in advance. (Sorry if my english is bad =P)

Thiem Nguyen
  • 6,345
  • 7
  • 30
  • 50
  • Have you placed those Images in JBOSS/bin/your-images-foldername folder? Which UI are using I mean JSP or ?? – Suave Nti Jun 25 '12 at 18:57

2 Answers2

0

As long as you define the location of your resources in your classpath, you should be able to access these files.

phewataal
  • 1,107
  • 4
  • 12
  • 23
0

You can read the file from the location and write out via a servlet. see this: Output an image file from a servlet

Community
  • 1
  • 1
Nishant
  • 54,584
  • 13
  • 112
  • 127