We have a .war file deployed in our app server. We need to access a logo image inside that .war file, like
test.war
|_ skin/
|_ logo.gif
And in our application we keep a property file which poins to this image location, in order to load it:
imagepath = D:/server/.../test.war/skin/logo.gif
It was working fine.
Problem
Now we changed our test.war to compressed (zipped) format, and our current implementation couldn't load it.Our intention is to load the image without changing current implementation.That means can we solve it by just changing the image path in properties file?(I know we can acces zipped file in java using zip utils, unfortunately we could not change code) We tried
imagepath = jar:file:/D:/server/.../test.war!/skin/logo.gif
and didnt work . Any hope?